[ui] Base sidebar home link properties with cluster config API
@@ -312,14 +312,16 @@ class Sidebar {
}
const browserItems = [];
+ if (appConfig['home']) {
browserItems.push(
new SidebarItem({
- displayName: I18n('Documents'),
- url: '/home/',
+ displayName: appConfig['home']['buttonName'],
+ url: appConfig['home']['page'],
icon: 'documents',
- type: 'home'
+ type: appConfig['home']['name']
})
);
+ }
if (appConfig['browser'] && appConfig['browser']['interpreters']) {
appConfig['browser']['interpreters'].forEach(browser => {
browserItems.push(
