Skip to content

Commit 9b8d822

Browse files
DaanHooglandLocharla, Sandeep
authored andcommitted
UI: Deal with crosssite api call after login (apache#10533)
1 parent 572c520 commit 9b8d822

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/store/modules/user.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ const user = {
338338
const result = response.listusersresponse.user[0]
339339
commit('SET_INFO', result)
340340
commit('SET_NAME', result.firstname + ' ' + result.lastname)
341-
store.dispatch('SetCsLatestVersion', result.rolename)
342341
resolve(cachedApis)
343342
}).catch(error => {
344343
reject(error)
@@ -588,6 +587,9 @@ const user = {
588587
commit('SET_DOMAIN_STORE', domainStore)
589588
},
590589
SetCsLatestVersion ({ commit }, rolename) {
590+
if (!vueProps.$config.notifyLatestCSVersion) {
591+
return
592+
}
591593
const lastFetchTs = store.getters.latestVersion?.fetchedTs ? store.getters.latestVersion.fetchedTs : 0
592594
if (rolename === 'Root Admin' && (+new Date() - lastFetchTs) > 24 * 60 * 60 * 1000) {
593595
axios.get(

0 commit comments

Comments
 (0)