hide set as base currency when the currency is already the base
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user