Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfgsfds <4870330+fgsfds@users.noreply.github.com>2025-08-06 12:20:07 +0300
committerGitHub <noreply@github.com>2025-08-06 12:20:07 +0300
commit5e641ff9e80a6ec75ff2e3258737892689f8e109 (patch)
tree5d745ecf761bb2e41dff5eb84c86aa1801f10fb2 /web/html/index.html
parent58898e5758697c4c2d9a91704b3f2662adb7167d (diff)
Added Update all geofiles button (#3318)
* added Update all geofiles button * localized update all string
Diffstat (limited to 'web/html/index.html')
-rw-r--r--web/html/index.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/web/html/index.html b/web/html/index.html
index bc5483b0..d3155edd 100644
--- a/web/html/index.html
+++ b/web/html/index.html
@@ -383,6 +383,9 @@
<a-icon type="reload" @click="updateGeofile(file)" :style="{ marginRight: '8px' }"/>
</a-list-item>
</a-list>
+ <div style="margin-top: 5px; display: flex; justify-content: flex-end;">
+ <a-button @click="updateGeofile('')">{{ i18n "pages.index.geofilesUpdateAll" }}</a-button>
+ </div>
</a-collapse-panel>
</a-collapse>
</a-modal>
@@ -786,16 +789,22 @@ ${dateTime}
});
},
updateGeofile(fileName) {
+ const isSingleFile = !!fileName;
this.$confirm({
title: '{{ i18n "pages.index.geofileUpdateDialog" }}',
- content: '{{ i18n "pages.index.geofileUpdateDialogDesc" }}'.replace("#filename#", fileName),
+ content: isSingleFile
+ ? '{{ i18n "pages.index.geofileUpdateDialogDesc" }}'.replace("#filename#", fileName)
+ : '{{ i18n "pages.index.geofilesUpdateDialogDesc" }}',
okText: '{{ i18n "confirm"}}',
class: themeSwitcher.currentTheme,
cancelText: '{{ i18n "cancel"}}',
onOk: async () => {
versionModal.hide();
this.loading(true, '{{ i18n "pages.index.dontRefresh"}}');
- await HttpUtil.post(`/server/updateGeofile/${fileName}`);
+ const url = isSingleFile
+ ? `/server/updateGeofile/${fileName}`
+ : `/server/updateGeofile`;
+ await HttpUtil.post(url);
this.loading(false);
},
});