mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
always show data management in settings page, only show export data when server enables this feature
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<f7-list-item :title="$t('User Profile')" link="/user/profile"></f7-list-item>
|
<f7-list-item :title="$t('User Profile')" link="/user/profile"></f7-list-item>
|
||||||
<f7-list-item :title="$t('Transaction Categories')" link="/category/all"></f7-list-item>
|
<f7-list-item :title="$t('Transaction Categories')" link="/category/all"></f7-list-item>
|
||||||
<f7-list-item :title="$t('Transaction Tags')" link="/tag/list"></f7-list-item>
|
<f7-list-item :title="$t('Transaction Tags')" link="/tag/list"></f7-list-item>
|
||||||
<f7-list-item :title="$t('Data Management')" link="/user/data/management" v-if="isDataExportingEnabled"></f7-list-item>
|
<f7-list-item :title="$t('Data Management')" link="/user/data/management"></f7-list-item>
|
||||||
<f7-list-item :title="$t('Two-Factor Authentication')" link="/user/2fa"></f7-list-item>
|
<f7-list-item :title="$t('Two-Factor Authentication')" link="/user/2fa"></f7-list-item>
|
||||||
<f7-list-item :title="$t('Device & Sessions')" link="/user/sessions"></f7-list-item>
|
<f7-list-item :title="$t('Device & Sessions')" link="/user/sessions"></f7-list-item>
|
||||||
<f7-list-button :class="{ 'disabled': logouting }" @click="logout">{{ $t('Log Out') }}</f7-list-button>
|
<f7-list-button :class="{ 'disabled': logouting }" @click="logout">{{ $t('Log Out') }}</f7-list-button>
|
||||||
@@ -137,9 +137,6 @@ export default {
|
|||||||
currentNickName() {
|
currentNickName() {
|
||||||
return this.$store.getters.currentUserNickname || this.$t('User');
|
return this.$store.getters.currentUserNickname || this.$t('User');
|
||||||
},
|
},
|
||||||
isDataExportingEnabled() {
|
|
||||||
return this.$settings.isDataExportingEnabled();
|
|
||||||
},
|
|
||||||
exchangeRatesLastUpdateDate() {
|
exchangeRatesLastUpdateDate() {
|
||||||
const exchangeRatesLastUpdateTime = this.$store.getters.exchangeRatesLastUpdateTime;
|
const exchangeRatesLastUpdateTime = this.$store.getters.exchangeRatesLastUpdateTime;
|
||||||
return exchangeRatesLastUpdateTime ? this.$utilities.formatUnixTime(exchangeRatesLastUpdateTime, this.$t('format.date.long')) : '';
|
return exchangeRatesLastUpdateTime ? this.$utilities.formatUnixTime(exchangeRatesLastUpdateTime, this.$t('format.date.long')) : '';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<f7-card>
|
<f7-card>
|
||||||
<f7-card-content class="no-safe-areas" :padding="false">
|
<f7-card-content class="no-safe-areas" :padding="false">
|
||||||
<f7-list>
|
<f7-list>
|
||||||
<f7-list-button external no-chevron target="_blank" :link="`${$constants.api.baseUrlPath}/data/export.csv?token=${$user.getToken()}&utc_offset=${currentTimezoneOffsetMinutes}`">{{ $t('Export Data') }}</f7-list-button>
|
<f7-list-button external no-chevron target="_blank" :link="`${$constants.api.baseUrlPath}/data/export.csv?token=${$user.getToken()}&utc_offset=${currentTimezoneOffsetMinutes}`" v-if="isDataExportingEnabled">{{ $t('Export Data') }}</f7-list-button>
|
||||||
<f7-list-button color="red" @click="clearData(null)">{{ $t('Clear User Data') }}</f7-list-button>
|
<f7-list-button color="red" @click="clearData(null)">{{ $t('Clear User Data') }}</f7-list-button>
|
||||||
</f7-list>
|
</f7-list>
|
||||||
</f7-card-content>
|
</f7-card-content>
|
||||||
@@ -34,6 +34,9 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
currentTimezoneOffsetMinutes() {
|
currentTimezoneOffsetMinutes() {
|
||||||
return this.$utilities.getTimezoneOffsetMinutes();
|
return this.$utilities.getTimezoneOffsetMinutes();
|
||||||
|
},
|
||||||
|
isDataExportingEnabled() {
|
||||||
|
return this.$settings.isDataExportingEnabled();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user