VRFS-1965 hide button if button text is empty
This commit is contained in:
parent
2c7e4ec581
commit
da0f596fc1
|
|
@ -307,10 +307,15 @@
|
|||
}
|
||||
|
||||
var $action_btn = $notification.find($btnNotificationAction);
|
||||
$action_btn.text(actionText);
|
||||
$action_btn.click(function() {
|
||||
callback(payload);
|
||||
});
|
||||
if (actionText === '') {
|
||||
$action_btn.hide();
|
||||
}
|
||||
else {
|
||||
$action_btn.text(actionText);
|
||||
$action_btn.click(function() {
|
||||
callback(payload);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
else if (type === context.JK.MessageType.MUSICIAN_RECORDING_SAVED || type === context.JK.MessageType.BAND_RECORDING_SAVED) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue