feat [front]: draft status implies button text and is not checkable
This commit is contained in:
parent
131b5a6944
commit
c9fe7ec747
1 changed files with 8 additions and 9 deletions
|
@ -113,18 +113,17 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label class="checkbox">
|
||||
<input v-model="film.isConfirmed" type="checkbox" />
|
||||
Validé
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="buttons">
|
||||
<!-- 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')">
|
||||
Publier
|
||||
{{ film?.isConfirmed ? "Sauvegarder" : "Publier" }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue