hide set as base currency when the currency is already the base

This commit is contained in:
MaysWind
2023-08-20 00:54:11 +08:00
parent aa717ed1fe
commit 72725d5ab4
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -109,6 +109,7 @@
<v-btn class="px-2 ml-2 mr-3" color="default" <v-btn class="px-2 ml-2 mr-3" color="default"
density="comfortable" variant="text" density="comfortable" variant="text"
:class="{ 'd-none': loading, 'hover-display': !loading }" :class="{ 'd-none': loading, 'hover-display': !loading }"
v-if="exchangeRate.currencyCode !== baseCurrency"
@click="setAsBaseline(exchangeRate.currencyCode, getConvertedAmount(exchangeRate))"> @click="setAsBaseline(exchangeRate.currencyCode, getConvertedAmount(exchangeRate))">
{{ $t('Set As Baseline') }} {{ $t('Set As Baseline') }}
</v-btn> </v-btn>
+1 -1
View File
@@ -56,7 +56,7 @@
<small class="smaller">{{ exchangeRate.currencyCode }}</small> <small class="smaller">{{ exchangeRate.currencyCode }}</small>
</div> </div>
</template> </template>
<f7-swipeout-actions right> <f7-swipeout-actions right v-if="exchangeRate.currencyCode !== baseCurrency">
<f7-swipeout-button color="primary" close :text="$t('Set As Baseline')" @click="setAsBaseline(exchangeRate.currencyCode, getConvertedAmount(exchangeRate))"></f7-swipeout-button> <f7-swipeout-button color="primary" close :text="$t('Set As Baseline')" @click="setAsBaseline(exchangeRate.currencyCode, getConvertedAmount(exchangeRate))"></f7-swipeout-button>
</f7-swipeout-actions> </f7-swipeout-actions>
</f7-list-item> </f7-list-item>