mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 18:59:41 +02:00
fix(frontend) prevent notification showing Object Object EE-1745 (#5778)
* fix(frontend) prevent notification showing Object Object EE-1745 * fix(frontend) fix notification args in wrong order EE-1745 * fix(rbac) add metrics rbac for regular users EE-1745 Co-authored-by: Simon Meng <simon.meng@portainer.io>
This commit is contained in:
parent
d93d88fead
commit
6a67e8142d
11 changed files with 45 additions and 35 deletions
|
@ -501,7 +501,7 @@ angular.module('portainer.docker').controller('ServiceController', [
|
|||
ServiceService.update(service, config, 'previous')
|
||||
.then(function (data) {
|
||||
if (data.message && data.message.match(/^rpc error:/)) {
|
||||
Notifications.error(data.message, 'Error');
|
||||
Notifications.error('Failure', data, 'Error');
|
||||
} else {
|
||||
Notifications.success('Success', 'Service successfully rolled back');
|
||||
$scope.cancelChanges({});
|
||||
|
@ -550,7 +550,7 @@ angular.module('portainer.docker').controller('ServiceController', [
|
|||
ServiceService.update(service, config).then(
|
||||
function (data) {
|
||||
if (data.message && data.message.match(/^rpc error:/)) {
|
||||
Notifications.error(data.message, 'Error');
|
||||
Notifications.error('Failure', data, 'Error');
|
||||
} else {
|
||||
Notifications.success('Service successfully updated', 'Service updated');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue