mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-22 15:53:01 +00:00
AdminButton fragment handling
This commit is contained in:
parent
6e8b6549ea
commit
a15dd4fdfa
2 changed files with 2 additions and 7 deletions
|
@ -23,10 +23,7 @@
|
|||
</div>
|
||||
<div class="level-right">
|
||||
<div class="level-item">
|
||||
<AdminButton
|
||||
v-model="is_admin"
|
||||
button_class="tag is-link is-outlined"
|
||||
/>
|
||||
<AdminButton class="tag is-link is-outlined" v-model="is_admin" />
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<LoginModal v-if="modal_visible" @submit="on_submit" @cancel="on_cancel" />
|
||||
|
||||
<BulmaButton
|
||||
:class="button_class"
|
||||
v-bind="$attrs"
|
||||
:icon="'fa-solid fa-toggle-' + (modelValue ? 'on' : 'off')"
|
||||
:busy="is_busy"
|
||||
text="Admin"
|
||||
|
@ -24,14 +24,12 @@ import LoginModal from "./LoginModal.vue";
|
|||
},
|
||||
props: {
|
||||
modelValue: Boolean,
|
||||
button_class: String,
|
||||
},
|
||||
emits: ["update:modelValue"],
|
||||
})
|
||||
export default class extends Vue {
|
||||
// true, iff Benutzer Admin ist
|
||||
public modelValue!: boolean;
|
||||
public button_class!: string;
|
||||
|
||||
public modal_visible = false;
|
||||
public is_busy = false;
|
||||
|
|
Loading…
Reference in a new issue