reorder the button display order

This commit is contained in:
MaysWind
2026-03-11 01:08:11 +08:00
parent 13488efdaf
commit dd63500202
4 changed files with 38 additions and 38 deletions
@@ -68,14 +68,14 @@
</v-card-text>
<v-card-text class="mt-2">
<v-btn color="secondary" variant="tonal"
:disabled="loading || !isSupportedFileCache || !fileCacheStatistics" @click="clearMapCache()">
{{ tt('Clear Map Data Cache') }}
</v-btn>
<v-btn color="secondary" variant="tonal"
:disabled="loading || !isSupportedFileCache || !fileCacheStatistics" @click="clearApplicationCodeFileCache()">
{{ tt('Clear Application Code Cache') }}
</v-btn>
<v-btn class="ms-2" color="secondary" variant="tonal"
:disabled="loading || !isSupportedFileCache || !fileCacheStatistics" @click="clearMapCache()">
{{ tt('Clear Map Data Cache') }}
</v-btn>
<v-btn class="ms-2" color="secondary" variant="tonal"
:disabled="loading || !isSupportedFileCache || !fileCacheStatistics" @click="clearAllFileCache()">
{{ tt('Clear All File Cache') }}
@@ -183,25 +183,25 @@ const {
mapCacheExpiration,
exchangeRatesDataCacheExpiration,
loadCacheStatistics,
clearMapDataCache,
clearApplicationCodeCache,
clearMapDataCache,
clearAllBrowserCaches,
clearExchangeRatesDataCache
} = useAppBrowserCacheSettingPageBase();
const confirmDialog = useTemplateRef<ConfirmDialogType>('confirmDialog');
function clearMapCache(): void {
confirmDialog.value?.open('Are you sure you want to clear map data cache?').then(() => {
clearMapDataCache().then(() => {
function clearApplicationCodeFileCache(): void {
confirmDialog.value?.open('Are you sure you want to clear application code cache?').then(() => {
clearApplicationCodeCache().then(() => {
loadCacheStatistics(true);
});
});
}
function clearApplicationCodeFileCache(): void {
confirmDialog.value?.open('Are you sure you want to clear application code cache?').then(() => {
clearApplicationCodeCache().then(() => {
function clearMapCache(): void {
confirmDialog.value?.open('Are you sure you want to clear map data cache?').then(() => {
clearMapDataCache().then(() => {
loadCacheStatistics(true);
});
});