Make Autohold button consistent with other buttons, sold=active, outline=inactive
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 40s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m48s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-06-05 22:29:43 +10:00
parent 742f0cd015
commit 614d5b877b

View File

@ -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
});