fix: archived accounts are in read only mode

This commit is contained in:
Julien Calixte
2019-08-23 11:31:19 +02:00
parent 6cb70d91ae
commit 9957603025
2 changed files with 2 additions and 1 deletions

View File

@@ -137,6 +137,7 @@
</transition-group> </transition-group>
</div> </div>
<fab-button <fab-button
v-if="!account.archive"
:to="{ name: 'transaction-new', params: { id: account._id } }" :to="{ name: 'transaction-new', params: { id: account._id } }"
:button-style="backgroundColor" :button-style="backgroundColor"
:margin="true" :margin="true"

View File

@@ -79,7 +79,7 @@
<div v-else> <div v-else>
<online-view @online="retrieveExchange" />Le taux d'échange n'a pas pu être récupéré. <online-view @online="retrieveExchange" />Le taux d'échange n'a pas pu être récupéré.
</div> </div>
<div class="buttons is-centered"> <div class="buttons is-centered" v-if="!account.archive">
<router-link <router-link
v-if="canModify" v-if="canModify"
tag="button" tag="button"