Fixing basePath in Server Groups description

Replace hardcoded basePath with injected to
match best practices and other modules

Change-Id: I92172bdc61251676728b8aaf3cbf091499c7197e
This commit is contained in:
Dmitriy Chubinidze 2025-05-07 11:48:11 +00:00
parent b8b21100bd
commit 9dba4e90ea

View File

@ -27,7 +27,8 @@
'horizon.framework.widgets.form.ModalFormService',
'horizon.framework.widgets.toast.service',
'horizon.framework.util.actions.action-result.service',
'horizon.framework.util.i18n.gettext'
'horizon.framework.util.i18n.gettext',
'horizon.app.core.server_groups.basePath'
];
/**
@ -43,11 +44,10 @@
modalFormService,
toast,
actionResultService,
gettext
gettext,
basePath
) {
var basePath = '/static/app/core/server_groups/';
var service = {
allowed: allowed,
perform: perform,