From 58f2eda0fe20af3ec07d32b6384f4dfed2bde738 Mon Sep 17 00:00:00 2001 From: Maria Date: Wed, 27 Nov 2024 14:32:09 +0000 Subject: [PATCH] Fixes #38047 - Do not tranlsate links in toasts (#11238) --- .../bulk/content-hosts-bulk-traces-modal.controller.js | 2 +- .../bulk/products-bulk-advanced-sync-modal.controller.js | 2 +- .../bastion_katello/products/products.controller.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-traces-modal.controller.js b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-traces-modal.controller.js index 59d35804c22..66f2d3a7c8f 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-traces-modal.controller.js +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-traces-modal.controller.js @@ -34,7 +34,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkTracesContro Notification.setSuccessMessage(message, { link: { children: translate("View job invocations."), - href: translate("/job_invocations") + href: "/job_invocations" }}); $scope.ok(); }; diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-advanced-sync-modal.controller.js b/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-advanced-sync-modal.controller.js index a56ef0eea79..e090842d0fc 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-advanced-sync-modal.controller.js +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-advanced-sync-modal.controller.js @@ -25,7 +25,7 @@ angular.module('Bastion.products').controller('ProductsBulkAdvancedSyncModalCont Notification.setSuccessMessage(message, { link: { children: translate("Click to view task"), - href: translate("/foreman_tasks/tasks/%taskId").replace('%taskId', task.id) + href: "/foreman_tasks/tasks/%taskId".replace('%taskId', task.id) }}); }; diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js b/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js index 51929723634..ab985de8d94 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js @@ -68,7 +68,7 @@ angular.module('Bastion.products').controller('ProductsController', Notification.setSuccessMessage(message, { link: { children: translate("Click to view task"), - href: translate("/foreman_tasks/tasks/%taskId").replace('%taskId', taskId) + href: "/foreman_tasks/tasks/%taskId".replace('%taskId', taskId) }}); }); @@ -98,7 +98,7 @@ angular.module('Bastion.products').controller('ProductsController', Notification.setSuccessMessage(message, { link: { children: translate("Click to monitor task progress."), - href: translate("/foreman_tasks/tasks/%taskId").replace('%taskId', task.id) + href: "/foreman_tasks/tasks/%taskId".replace('%taskId', task.id) }}); }; @@ -113,7 +113,7 @@ angular.module('Bastion.products').controller('ProductsController', Notification.setSuccessMessage(message, { link: { children: translate("Click to monitor task progress."), - href: translate("/foreman_tasks/tasks/%taskId").replace('%taskId', task.id) + href: "/foreman_tasks/tasks/%taskId".replace('%taskId', task.id) }}); };