We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 572c520 commit 9b8d822Copy full SHA for 9b8d822
1 file changed
ui/src/store/modules/user.js
@@ -338,7 +338,6 @@ const user = {
338
const result = response.listusersresponse.user[0]
339
commit('SET_INFO', result)
340
commit('SET_NAME', result.firstname + ' ' + result.lastname)
341
- store.dispatch('SetCsLatestVersion', result.rolename)
342
resolve(cachedApis)
343
}).catch(error => {
344
reject(error)
@@ -588,6 +587,9 @@ const user = {
588
587
commit('SET_DOMAIN_STORE', domainStore)
589
},
590
SetCsLatestVersion ({ commit }, rolename) {
+ if (!vueProps.$config.notifyLatestCSVersion) {
591
+ return
592
+ }
593
const lastFetchTs = store.getters.latestVersion?.fetchedTs ? store.getters.latestVersion.fetchedTs : 0
594
if (rolename === 'Root Admin' && (+new Date() - lastFetchTs) > 24 * 60 * 60 * 1000) {
595
axios.get(
0 commit comments