feat [front]: draft status implies button text and is not checkable

This commit is contained in:
Alice 2022-04-09 19:31:43 +02:00
parent 131b5a6944
commit c9fe7ec747

View file

@ -113,18 +113,17 @@
</div> </div>
</div> </div>
<div class="field">
<label class="checkbox">
<input v-model="film.isConfirmed" type="checkbox" />
Validé
</label>
</div>
<div class="buttons"> <div class="buttons">
<!-- TODO change labels according to publishing status --> <!-- TODO change labels according to publishing status -->
<button class="button" @click="emits('save')">Enregistrer</button> <button class="button" @click="emits('save')">
{{
film?.isConfirmed
? "Sauvegarder et mettre en brouillon"
: "Sauvegarder"
}}
</button>
<button class="button is-primary" @click="emits('publish')"> <button class="button is-primary" @click="emits('publish')">
Publier {{ film?.isConfirmed ? "Sauvegarder" : "Publier" }}
</button> </button>
</div> </div>
</div> </div>