Skip to content

Commit ff30e10

Browse files
committed
Small button fixes
1 parent 2d291f8 commit ff30e10

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

resources/views/layouts/default.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@
149149
150150
.btn-danger {
151151
color: white !important;
152+
background-color: var(--text-danger) !important;
153+
}
154+
155+
.btn-warning {
156+
color: white !important;
157+
background-color: var(--text-warning) !important;
152158
}
153159
154160
.dropdown-wrapper,

resources/views/partials/bootstrap-table.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,13 @@ class: 'btn-warning',
247247
248248
btnShowAdmins: {
249249
text: '{{ trans('general.show_admins') }}',
250-
icon: 'fa-solid fa-crown{{ (request()->input('admins') == "true") ? ' text-danger' : '' }}',
250+
icon: 'fa-solid fa-crown',
251251
event () {
252252
window.location.href = '{{ (request()->input('admins') == "true") ? route('users.index') : route('users.index', ['admins' => 'true']) }}';
253253
},
254254
attributes: {
255255
title: '{{ trans('general.show_admins') }}',
256+
class: '{{ (request()->input('admins') == "true") ? ' btn-danger' : '' }}'
256257
}
257258
},
258259

0 commit comments

Comments
 (0)