Add a shortcut to the banner editor.

This commit is contained in:
PascalMarchesseault
2025-01-23 10:52:58 -05:00
parent 9e8cf4fe4f
commit 4760fca1a7

View File

@@ -1,5 +1,6 @@
<template>
<div v-if="creatorProfileStore.creator?.id === brandingStore.value.id" class="flex justify-end space-x-2 mb-5 pa-1">
<!-- Bouton principal : Éditer ou Enregistrer -->
<button
v-if="isLoggedIn"
@@ -10,6 +11,18 @@
{{ isEditMode ? 'Enregistrer' : 'Éditer la page' }}
</button>
<router-link to="/profile"><button
v-if="isLoggedIn"
class="px-4 py-2 rounded-md hover:opacity-90"
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"
>
Éditer la banière
</button></router-link>
<button
v-if="isEditMode && isLoggedIn"
@click="cancelEdit"