Revision 44ab18ee
Added by Jonathon Turel almost 6 years ago
engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-advanced-sync-modal.controller.js | ||
---|---|---|
message = translate("Product syncs has been initiated in the background. " +
|
||
"Click %s to monitor the progress.");
|
||
|
||
Notification.setRenderedSuccessMessage(message.replace('%s', taskLink));
|
||
Notification.setSuccessMessage(message.replace('%s', taskLink));
|
||
};
|
||
|
||
error = function (response) {
|
engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js | ||
---|---|---|
taskUrl = $scope.taskUrl(taskId);
|
||
taskLink = $sce.trustAsHtml("<a href=" + taskUrl + ">here</a>");
|
||
message = translate("Product delete operation has been initiated in the background. Click %s to monitor the progress.");
|
||
Notification.setRenderedSuccessMessage(message.replace("%", taskLink));
|
||
Notification.setSuccessMessage(message.replace("%", taskLink));
|
||
});
|
||
|
||
$scope.unsetProductDeletionTaskId = function () {
|
||
... | ... | |
message = translate("Product sync has been initiated in the background. " +
|
||
"Click %s to monitor the progress.");
|
||
|
||
Notification.setRenderedSuccessMessage(message.replace('%s', taskLink));
|
||
Notification.setSuccessMessage(message.replace('%s', taskLink));
|
||
};
|
||
|
||
ProductBulkAction.syncProducts(getBulkParams(), success, bulkError);
|
engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks.module.js | ||
---|---|---|
abstract: true,
|
||
templateUrl: 'tasks/views/tasks.html'
|
||
})
|
||
.state('tasks.index', {
|
||
url: 'katello_tasks',
|
||
permission: 'view_tasks',
|
||
templateUrl: 'tasks/views/tasks-index.html'
|
||
})
|
||
.state('tasks.details', {
|
||
url: 'katello_tasks/:taskId',
|
||
permission: 'view_tasks',
|
||
... | ... | |
templateUrl: 'tasks/views/task-details-standalone.html'
|
||
})
|
||
.state('task', {
|
||
url: 'katello_tasks/single/:taskId',
|
||
url: 'foreman_tasks/tasks/:taskId',
|
||
controller: 'TaskDetailsController',
|
||
permission: 'view_tasks',
|
||
templateUrl: 'tasks/views/task-details-standalone.html'
|
Also available in: Unified diff
Fixes #23957 - Use proper Notications API for bulk products