Repository navigation
Conversation
|
@blueorangutan package |
|
@hsato03 a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #13415 +/- ##
============================================
- Coverage 20.05% 20.04% -0.01%
+ Complexity 20656 20654 -2
============================================
Files 6427 6427
Lines 584905 584950 +45
Branches 71658 71659 +1
============================================
- Hits 117278 117269 -9
- Misses 454802 454858 +56
+ Partials 12825 12823 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18246 |
|
@hsato03 could you fix the conflicts here? |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@blueorangutan package |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
| } | ||
|
|
||
| if (response?.customlabelspath) { | ||
| updateMessages(response.customlabelspath) |
There was a problem hiding this comment.
should we wait for the custom labels before the app mounts? the fetch isnt awaited so the first screen can still show the default labels
| } | ||
|
|
||
| export function updateMessages (customPath) { | ||
| fetch(`${customPath}/${systemLang}.json`) |
There was a problem hiding this comment.
what happens when a user switches language? looks like the custom labels are only loaded for the language picked at startup
Description
The GUI whitelabel management system has been extended with the
customLabelsPathparameter to allow customization of UI labels. This parameter accepts the path to a directory containing the label files, which must be named according to their language code (e.g.,en.jsonfor English).If files are stored directly on the Management Servers, the base path is
/usr/share/cloudstack-management/webapp/, so only the relative path needs to be specified. Alternatively, a full URL to the directory hosting the JSON files can be provided.Note: The path or URL where the custom language files are located must be accessible by the user.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
en.jsonfile in the/usr/share/cloudstack-management/webapp/locales/custom_labelsdirectory with the following content:{ "label.name": "Nome custom" }I created the theme specifying the directory where the
en.jsonfile was created:Navigating through the ACS GUI, I verified that the label was correctly applied:
http://192.168.103.1:8001/custom-labels/:In this endpoint, there was an
en.jsonfile with the following content:{ "label.name": "Server name", "label.state": "Server state" }Navigating through the ACS GUI, I verified that the labels were also applied:
How did you try to break this feature and the system with this change?