Skip to content

Commit 270d3f9

Browse files
authored
UI: Deal with crosssite api call after login (#10533)
1 parent 314c459 commit 270d3f9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ui/public/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,6 @@
9797
"basicZoneEnabled": true,
9898
"multipleServer": false,
9999
"allowSettingTheme": true,
100-
"docHelpMappings": {}
100+
"docHelpMappings": {},
101+
"notifyLatestCSVersion": true
101102
}

ui/src/store/modules/user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ const user = {
317317
const result = response.listusersresponse.user[0]
318318
commit('SET_INFO', result)
319319
commit('SET_NAME', result.firstname + ' ' + result.lastname)
320-
store.dispatch('SetCsLatestVersion', result.rolename)
321320
resolve(cachedApis)
322321
}).catch(error => {
323322
reject(error)
@@ -564,6 +563,9 @@ const user = {
564563
commit('SET_DOMAIN_STORE', domainStore)
565564
},
566565
SetCsLatestVersion ({ commit }, rolename) {
566+
if (!vueProps.$config.notifyLatestCSVersion) {
567+
return
568+
}
567569
const lastFetchTs = store.getters.latestVersion?.fetchedTs ? store.getters.latestVersion.fetchedTs : 0
568570
if (rolename === 'Root Admin' && (+new Date() - lastFetchTs) > 24 * 60 * 60 * 1000) {
569571
axios.get(

0 commit comments

Comments
 (0)