Skip to content

Commit

Permalink
Hide the insert working plan button while viewing services in calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Jul 1, 2024
1 parent 35f914a commit 1f146ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/utils/calendar_default_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 1f146ff

Please sign in to comment.