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 38s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m48s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s

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

View File

@ -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-danger'=>$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>
@ -489,7 +489,7 @@ use App\Models\{Mailer,Setup,User};
.addClass('bi-toggle-off') .addClass('bi-toggle-off')
that.removeClass('btn-danger') that.removeClass('btn-danger')
.addClass('btn-success') .addClass('btn-outline-success')
}, },
cache: false cache: false
}); });
@ -510,7 +510,7 @@ 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-danger')
}, },
cache: false cache: false