Change the call-to-action message button to "delete" instead of "ok".
This commit is contained in:
parent
be985b3912
commit
aa71d8afad
2 changed files with 4 additions and 4 deletions
|
@ -226,7 +226,7 @@ App.Utils.CalendarDefaultView = (function () {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'OK',
|
text: lang('delete'),
|
||||||
click: () => {
|
click: () => {
|
||||||
const appointmentId = lastFocusedEventData.extendedProps.data.id;
|
const appointmentId = lastFocusedEventData.extendedProps.data.id;
|
||||||
|
|
||||||
|
@ -360,7 +360,7 @@ App.Utils.CalendarDefaultView = (function () {
|
||||||
|
|
||||||
if ($target.hasClass('fc-unavailability')) {
|
if ($target.hasClass('fc-unavailability')) {
|
||||||
displayEdit =
|
displayEdit =
|
||||||
$target.hasClass('fc-custom') && vars('privileges').appointments.edit === true ? 'me-2' : 'd-none';
|
$target.hasClass('fc-custom') && vars('privileges').appointments.edit === true ? '' : 'd-none';
|
||||||
displayDelete =
|
displayDelete =
|
||||||
$target.hasClass('fc-custom') && vars('privileges').appointments.delete === true ? 'me-2' : 'd-none'; // Same value at the time.
|
$target.hasClass('fc-custom') && vars('privileges').appointments.delete === true ? 'me-2' : 'd-none'; // Same value at the time.
|
||||||
|
|
||||||
|
@ -547,7 +547,7 @@ App.Utils.CalendarDefaultView = (function () {
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
displayEdit = vars('privileges').appointments.edit === true ? 'me-2' : 'd-none';
|
displayEdit = vars('privileges').appointments.edit === true ? '' : 'd-none';
|
||||||
displayDelete = vars('privileges').appointments.delete === true ? 'me-2' : 'd-none';
|
displayDelete = vars('privileges').appointments.delete === true ? 'me-2' : 'd-none';
|
||||||
|
|
||||||
$html = $('<div/>', {
|
$html = $('<div/>', {
|
||||||
|
|
|
@ -291,7 +291,7 @@ App.Utils.CalendarTableView = (function () {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'OK',
|
text: lang('delete'),
|
||||||
click: () => {
|
click: () => {
|
||||||
const appointmentId = lastFocusedEventData.extendedProps.data.id;
|
const appointmentId = lastFocusedEventData.extendedProps.data.id;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue