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">
|
<div class="col-6">
|
||||||
<label for="autohold" class="form-label">Auto Hold</label>
|
<label for="autohold" class="form-label">Auto Hold</label>
|
||||||
<div class="input-group">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -488,8 +488,8 @@ use App\Models\{Mailer,Setup,User};
|
|||||||
icon.removeClass('bi-toggle-on')
|
icon.removeClass('bi-toggle-on')
|
||||||
.addClass('bi-toggle-off')
|
.addClass('bi-toggle-off')
|
||||||
|
|
||||||
that.removeClass('btn-danger')
|
that.removeClass('btn-warning')
|
||||||
.addClass('btn-success')
|
.addClass('btn-outline-success')
|
||||||
},
|
},
|
||||||
cache: false
|
cache: false
|
||||||
});
|
});
|
||||||
@ -510,8 +510,8 @@ use App\Models\{Mailer,Setup,User};
|
|||||||
icon.removeClass('bi-toggle-off')
|
icon.removeClass('bi-toggle-off')
|
||||||
.addClass('bi-toggle-on');
|
.addClass('bi-toggle-on');
|
||||||
|
|
||||||
that.removeClass('btn-success')
|
that.removeClass('btn-outline-success')
|
||||||
.addClass('btn-danger')
|
.addClass('btn-warning')
|
||||||
},
|
},
|
||||||
cache: false
|
cache: false
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user