Make Autohold button consistent with other buttons, sold=active, outline=inactive
This commit is contained in:
parent
742f0cd015
commit
614d5b877b
@ -306,7 +306,7 @@ use App\Models\{Mailer,Setup,User};
|
||||
<div class="col-6">
|
||||
<label for="autohold" class="form-label">Auto Hold</label>
|
||||
<div class="input-group">
|
||||
<button id="autohold" @class(['btn','btn-danger'=>$o->autohold,'btn-success'=>(! $o->autohold)])><i @class(['bi-toggle-on'=>$o->autohold,'bi-toggle-off'=>(! $o->autohold)])></i></button>
|
||||
<button id="autohold" @class(['btn','btn-warning'=>$o->autohold,'btn-outline-success'=>(! $o->autohold)])><i @class(['bi-toggle-on'=>$o->autohold,'bi-toggle-off'=>(! $o->autohold)])></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -488,8 +488,8 @@ use App\Models\{Mailer,Setup,User};
|
||||
icon.removeClass('bi-toggle-on')
|
||||
.addClass('bi-toggle-off')
|
||||
|
||||
that.removeClass('btn-danger')
|
||||
.addClass('btn-success')
|
||||
that.removeClass('btn-warning')
|
||||
.addClass('btn-outline-success')
|
||||
},
|
||||
cache: false
|
||||
});
|
||||
@ -510,8 +510,8 @@ use App\Models\{Mailer,Setup,User};
|
||||
icon.removeClass('bi-toggle-off')
|
||||
.addClass('bi-toggle-on');
|
||||
|
||||
that.removeClass('btn-success')
|
||||
.addClass('btn-danger')
|
||||
that.removeClass('btn-outline-success')
|
||||
.addClass('btn-warning')
|
||||
},
|
||||
cache: false
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user