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 {
266266 api (' updateConfiguration' , {
267267 name: record .name ,
268268 value: this .editableValue
269- }).then (() => {
269+ }).then (json => {
270270 this .editableValueKey = null
271271
272272 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+ }
277282 }).catch (error => {
278283 console .error (error)
279284 this .$message .error (' There was an error saving this setting.' )
You can’t perform that action at this time.
0 commit comments