File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 97
97
"basicZoneEnabled" : true ,
98
98
"multipleServer" : false ,
99
99
"allowSettingTheme" : true ,
100
- "docHelpMappings" : {}
100
+ "docHelpMappings" : {},
101
+ "notifyLatestCSVersion" : true
101
102
}
Original file line number Diff line number Diff line change @@ -317,7 +317,6 @@ const user = {
317
317
const result = response . listusersresponse . user [ 0 ]
318
318
commit ( 'SET_INFO' , result )
319
319
commit ( 'SET_NAME' , result . firstname + ' ' + result . lastname )
320
- store . dispatch ( 'SetCsLatestVersion' , result . rolename )
321
320
resolve ( cachedApis )
322
321
} ) . catch ( error => {
323
322
reject ( error )
@@ -564,6 +563,9 @@ const user = {
564
563
commit ( 'SET_DOMAIN_STORE' , domainStore )
565
564
} ,
566
565
SetCsLatestVersion ( { commit } , rolename ) {
566
+ if ( ! vueProps . $config . notifyLatestCSVersion ) {
567
+ return
568
+ }
567
569
const lastFetchTs = store . getters . latestVersion ?. fetchedTs ? store . getters . latestVersion . fetchedTs : 0
568
570
if ( rolename === 'Root Admin' && ( + new Date ( ) - lastFetchTs ) > 24 * 60 * 60 * 1000 ) {
569
571
axios . get (
You can’t perform that action at this time.
0 commit comments