mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-07 13:44:24 +00:00
feat: enhance panel update notifications in web GUI
This commit is contained in:
parent
3e8a44d7d6
commit
a94eff4518
2 changed files with 7 additions and 2 deletions
|
|
@ -334,12 +334,16 @@
|
||||||
<span>{{ i18n "pages.index.currentPanelVersion" }}</span>
|
<span>{{ i18n "pages.index.currentPanelVersion" }}</span>
|
||||||
<a-tag color="green">v[[ versionModal.panelUpdate.currentVersion || '{{ .cur_ver }}' ]]</a-tag>
|
<a-tag color="green">v[[ versionModal.panelUpdate.currentVersion || '{{ .cur_ver }}' ]]</a-tag>
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
<a-list-item class="ant-version-list-item">
|
<a-list-item class="ant-version-list-item" v-if="versionModal.panelUpdate.updateAvailable">
|
||||||
<span>{{ i18n "pages.index.latestPanelVersion" }}</span>
|
<span>{{ i18n "pages.index.latestPanelVersion" }}</span>
|
||||||
<a-tag :color="versionModal.panelUpdate.updateAvailable ? 'purple' : 'green'">
|
<a-tag color="purple">
|
||||||
[[ versionModal.panelUpdate.latestVersion || '-' ]]
|
[[ versionModal.panelUpdate.latestVersion || '-' ]]
|
||||||
</a-tag>
|
</a-tag>
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
|
<a-list-item class="ant-version-list-item" v-else>
|
||||||
|
<span>{{ i18n "pages.index.panelUpToDate" }}</span>
|
||||||
|
<a-tag color="green">{{ i18n "pages.index.xrayStatusRunning" }}</a-tag>
|
||||||
|
</a-list-item>
|
||||||
</a-list>
|
</a-list>
|
||||||
<div class="mt-5 d-flex justify-end">
|
<div class="mt-5 d-flex justify-end">
|
||||||
<a-button type="primary" icon="cloud-download" :disabled="!versionModal.panelUpdate.updateAvailable"
|
<a-button type="primary" icon="cloud-download" :disabled="!versionModal.panelUpdate.updateAvailable"
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@
|
||||||
"panelUpdateDesc" = "This will update 3X-UI itself to the latest release and restart the panel service."
|
"panelUpdateDesc" = "This will update 3X-UI itself to the latest release and restart the panel service."
|
||||||
"currentPanelVersion" = "Current panel version"
|
"currentPanelVersion" = "Current panel version"
|
||||||
"latestPanelVersion" = "Latest panel version"
|
"latestPanelVersion" = "Latest panel version"
|
||||||
|
"panelUpToDate" = "Panel is up to date"
|
||||||
"xrayStatusUnknown" = "Unknown"
|
"xrayStatusUnknown" = "Unknown"
|
||||||
"xrayStatusRunning" = "Running"
|
"xrayStatusRunning" = "Running"
|
||||||
"xrayStatusStop" = "Stop"
|
"xrayStatusStop" = "Stop"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue