From 1f146ff21cb38a99cd35500a69be98e53eb580d3 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 1 Jul 2024 09:38:01 +0200 Subject: [PATCH] Hide the insert working plan button while viewing services in calendar --- assets/js/utils/calendar_default_view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/utils/calendar_default_view.js b/assets/js/utils/calendar_default_view.js index cd225963..eb9d4004 100755 --- a/assets/js/utils/calendar_default_view.js +++ b/assets/js/utils/calendar_default_view.js @@ -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');