File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -266,14 +266,19 @@ export default {
266
266
api (' updateConfiguration' , {
267
267
name: record .name ,
268
268
value: this .editableValue
269
- }).then (() => {
269
+ }).then (json => {
270
270
this .editableValueKey = null
271
271
272
272
this .$message .success (' Setting Updated: ' + record .name )
273
- this .$notification .warning ({
274
- message: ' Status' ,
275
- description: ' Please restart your management server(s) for your new settings to take effect.'
276
- })
273
+ if (json .updateconfigurationresponse &&
274
+ json .updateconfigurationresponse .configuration &&
275
+ ! json .updateconfigurationresponse .configuration .isdynamic &&
276
+ [' Admin' ].includes (this .$store .getters .userInfo .roletype )) {
277
+ this .$notification .warning ({
278
+ message: ' Status' ,
279
+ description: ' Please restart your management server(s) for your new settings to take effect.'
280
+ })
281
+ }
277
282
}).catch (error => {
278
283
console .error (error)
279
284
this .$message .error (' There was an error saving this setting.' )
You can’t perform that action at this time.
0 commit comments