Hide the insert working plan button while viewing services in calendar

This commit is contained in:
Alex Tselegidis 2024-07-01 09:38:01 +02:00
parent 35f914a997
commit 1f146ff21c

View file

@ -312,7 +312,9 @@ App.Utils.CalendarDefaultView = (function () {
$('.provider-timezone').text(vars('timezones')[provider.timezone]);
}
$('#insert-working-plan-exception').toggle(providerId !== App.Utils.CalendarDefaultView.FILTER_TYPE_ALL);
$('#insert-working-plan-exception').toggle(
providerId === App.Utils.CalendarDefaultView.FILTER_TYPE_PROVIDER,
);
$reloadAppointments.trigger('click');