mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2026-01-10 07:03:04 +00:00
🖼️ ui: use array notation for icons
This commit is contained in:
parent
7643f35ec5
commit
804ad3f92f
5 changed files with 13 additions and 16 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<BulmaButton
|
||||
v-bind="$attrs"
|
||||
:icon="'fa-solid fa-toggle-' + (store.is_admin ? 'on' : 'off')"
|
||||
:icon="['fas', store.is_admin ? 'fa-toggle-on' : 'fa-toggle-off']"
|
||||
:busy="is_busy"
|
||||
text="Admin"
|
||||
@click.left="on_click"
|
||||
|
|
|
|||
|
|
@ -33,13 +33,13 @@
|
|||
<BulmaButton
|
||||
class="is-success"
|
||||
@click.left="submit"
|
||||
icon="fa-solid fa-unlock"
|
||||
:icon="['fas', 'fa-unlock']"
|
||||
text="Login"
|
||||
/>
|
||||
<BulmaButton
|
||||
class="is-danger"
|
||||
@click.left="cancel"
|
||||
icon="fa-solid fa-circle-xmark"
|
||||
:icon="['fas', 'fa-circle-xmark']"
|
||||
text="Abbrechen"
|
||||
/>
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,7 @@
|
|||
<span>Eingabemodus: </span>
|
||||
<BulmaButton
|
||||
v-bind="$attrs"
|
||||
:icon="
|
||||
'fa-solid fa-' +
|
||||
(store.is_touch_device ? 'hand-pointer' : 'arrow-pointer')
|
||||
"
|
||||
:icon="['fas', store.is_touch_device ? 'hand-pointer' : 'arrow-pointer']"
|
||||
:text="store.is_touch_device ? 'Touch' : 'Desktop'"
|
||||
@click.left="store.toggle_touch_device"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
v-for="(data, day) in day_data"
|
||||
:key="`btn-${day}`"
|
||||
:class="'tag is-' + (data.part === '' ? 'warning' : 'info')"
|
||||
icon="fa-solid fa-door-open"
|
||||
:icon="['fas', 'fa-door-open']"
|
||||
:text="day.toString()"
|
||||
@click.left="door_click(Number(day))"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
:disabled="current_step === 0"
|
||||
class="level-item is-link"
|
||||
@click="current_step--"
|
||||
icon="fa-solid fa-backward"
|
||||
:icon="['fas', 'fa-backward']"
|
||||
/>
|
||||
|
||||
<BulmaBreadcrumbs
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
:disabled="current_step === 2"
|
||||
class="level-item is-link"
|
||||
@click="current_step++"
|
||||
icon="fa-solid fa-forward"
|
||||
:icon="['fas', 'fa-forward']"
|
||||
/>
|
||||
</nav>
|
||||
|
||||
|
|
@ -47,20 +47,20 @@
|
|||
<BulmaButton
|
||||
class="card-footer-item is-danger"
|
||||
@click="on_download"
|
||||
icon="fa-solid fa-cloud-arrow-down"
|
||||
:icon="['fas', 'fa-cloud-arrow-down']"
|
||||
:busy="loading_doors"
|
||||
text="Laden"
|
||||
/>
|
||||
<BulmaButton
|
||||
class="card-footer-item is-warning"
|
||||
@click="on_discard"
|
||||
icon="fa-solid fa-trash"
|
||||
:icon="['fas', 'fa-trash']"
|
||||
text="Löschen"
|
||||
/>
|
||||
<BulmaButton
|
||||
class="card-footer-item is-success"
|
||||
@click="on_upload"
|
||||
icon="fa-solid fa-cloud-arrow-up"
|
||||
:icon="['fas', 'fa-cloud-arrow-up']"
|
||||
:busy="saving_doors"
|
||||
text="Speichern"
|
||||
/>
|
||||
|
|
@ -85,9 +85,9 @@ import DoorChooser from "../editor/DoorChooser.vue";
|
|||
import DoorPlacer from "../editor/DoorPlacer.vue";
|
||||
|
||||
const steps: BCStep[] = [
|
||||
{ label: "Platzieren", icon: "fa-solid fa-crosshairs" },
|
||||
{ label: "Ordnen", icon: "fa-solid fa-list-ol" },
|
||||
{ label: "Vorschau", icon: "fa-solid fa-magnifying-glass" },
|
||||
{ label: "Platzieren", icon: ["fas", "fa-crosshairs"] },
|
||||
{ label: "Ordnen", icon: ["fas", "fa-list-ol"] },
|
||||
{ label: "Vorschau", icon: ["fas", "fa-magnifying-glass"] },
|
||||
];
|
||||
|
||||
const doors = ref<Door[]>([]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue