not show add/remove sub account button when modify account

This commit is contained in:
MaysWind
2020-11-16 01:31:48 +08:00
parent 88a8961073
commit 60a03beaa0
+4 -4
View File
@@ -130,8 +130,8 @@
</f7-list-item>
</f7-list>
</f7-card-content>
<f7-card-footer>
<f7-button large fill :class="{ 'disabled': editAccountId }"
<f7-card-footer v-if="!editAccountId">
<f7-button large fill
:text="$t('Add Sub Account')" @click="addSubAccount"></f7-button>
</f7-card-footer>
</f7-card>
@@ -179,8 +179,8 @@
</f7-list-item>
</f7-list>
</f7-card-content>
<f7-card-footer>
<f7-button large fill :class="{ 'disabled': editAccountId }"
<f7-card-footer v-if="!editAccountId">
<f7-button large fill
color="red" :text="$t('Remove Sub Account')" @click="removeSubAccount(subAccount)"></f7-button>
</f7-card-footer>
</f7-card>