Check for demo mode in the clear method for the controller

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2023-03-21 19:27:05 -07:00
parent a14d1b981d
commit 647f47cdfe
3 changed files with 16 additions and 12 deletions
@@ -141,7 +141,7 @@
<div class="box-footer">
<div class="text-right col-md-12">
<button type="reset" wire:click.prevent="clearSettings" class="col-md-2 text-left btn btn-danger pull-left">{{ trans('general.clear_and_save') }}</button>
<button type="reset" wire:click.prevent="clearSettings" class="col-md-2 text-left btn btn-danger pull-left"{{ Helper::isDemoMode() ? ' disabled' : ''}}>{{ trans('general.clear_and_save') }}</button>
<a class="btn btn-link pull-left" href="{{ route('settings.index') }}">{{ trans('button.cancel') }}</a>