Update styling of feedback bar to use the alert styles and string builder

This commit is contained in:
Joseph Schorr 2015-07-14 12:22:18 +03:00
parent dcf8922799
commit d74da9a3db
5 changed files with 36 additions and 17 deletions

View file

@ -119,8 +119,11 @@ angular.module('quay').directive('robotsManager', function () {
created.repositories = [];
$scope.robots.push(created);
$scope.feedback = {
'kind': 'info',
'message': 'Robot account ' + name + ' was created'
'kind': 'success',
'message': 'Robot account {robot} was created',
'data': {
'robot': name
}
};
});
};
@ -132,8 +135,11 @@ angular.module('quay').directive('robotsManager', function () {
if (index >= 0) {
$scope.robots.splice(index, 1);
$scope.feedback = {
'kind': 'info',
'message': 'Robot account ' + info.name + ' was deleted'
'kind': 'success',
'message': 'Robot account {robot} was deleted',
'data': {
'robot': info.name
}
};
}
}, ApiService.errorDisplay('Cannot delete robot account'));