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
@@ -99,10 +99,10 @@
<f7-actions close-by-outside-click close-on-escape :opened="showMoreActionSheet" @actions:closed="showMoreActionSheet = false">
<f7-actions-group v-if="isSupportedFileCache && fileCacheStatistics">
<f7-actions-button :class="{ 'disabled': loading || !isSupportedFileCache || !fileCacheStatistics }"
@click="clearMapCache">{{ tt('Clear Map Data Cache') }}</f7-actions-button>
<f7-actions-button :class="{ 'disabled': loading || !isSupportedFileCache || !fileCacheStatistics }"
@click="clearApplicationCodeFileCache">{{ tt('Clear Application Code Cache') }}</f7-actions-button>
<f7-actions-button :class="{ 'disabled': loading || !isSupportedFileCache || !fileCacheStatistics }"
@click="clearMapCache">{{ tt('Clear Map Data Cache') }}</f7-actions-button>
<f7-actions-button :class="{ 'disabled': loading || !isSupportedFileCache || !fileCacheStatistics }"
@click="clearAllFileCache">{{ tt('Clear All File Cache') }}</f7-actions-button>
</f7-actions-group>
@@ -160,17 +160,17 @@ function reloadCacheStatistics(done?: () => void): void {
});
}
function clearMapCache(): void {
showConfirm('Are you sure you want to clear map data cache?', () => {
clearMapDataCache().then(() => {
function clearApplicationCodeFileCache(): void {
showConfirm('Are you sure you want to clear application code cache?', () => {
clearApplicationCodeCache().then(() => {
loadCacheStatistics(true);
});
});
}
function clearApplicationCodeFileCache(): void {
showConfirm('Are you sure you want to clear application code cache?', () => {
clearApplicationCodeCache().then(() => {
function clearMapCache(): void {
showConfirm('Are you sure you want to clear map data cache?', () => {
clearMapDataCache().then(() => {
loadCacheStatistics(true);
});
});