Skip to content

Commit 7ca5977

Browse files
DaanHooglanddhslove
authored andcommitted
UI: Deal with crosssite api call after login (apache#10533)
1 parent 7bdcb07 commit 7ca5977

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ui/public/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,6 @@
111111
"message": "🤔 <strong>Sample Announcement</strong>: New Feature Available: Check out our latest dashboard improvements! <a href='/features'>Learn more</a>",
112112
"startDate": "2025-06-01T00:00:00Z",
113113
"endDate": "2025-07-16T00:00:00Z"
114-
}
114+
},
115+
"notifyLatestCSVersion": true
115116
}

ui/src/store/modules/user.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,9 @@ const user = {
599599
commit('SET_DOMAIN_STORE', domainStore)
600600
},
601601
SetCsLatestVersion ({ commit }, rolename) {
602+
if (!vueProps.$config.notifyLatestCSVersion) {
603+
return
604+
}
602605
const lastFetchTs = store.getters.latestVersion?.fetchedTs ? store.getters.latestVersion.fetchedTs : 0
603606
if (rolename === 'Root Admin' && (+new Date() - lastFetchTs) > 24 * 60 * 60 * 1000) {
604607
axios.get(

0 commit comments

Comments
 (0)