diff --git a/application/Espo/Resources/i18n/en_US/Global.json b/application/Espo/Resources/i18n/en_US/Global.json index 8d37eb6ac6..ce824e8387 100644 --- a/application/Espo/Resources/i18n/en_US/Global.json +++ b/application/Espo/Resources/i18n/en_US/Global.json @@ -282,6 +282,7 @@ "Expand": "Expand", "Collapse": "Collapse", "Expanded": "Expanded", + "Top Level": "Top Level", "New notifications": "New notifications", "Manage Categories": "Manage Categories", "Manage Folders": "Manage Folders", diff --git a/client/src/views/list-with-categories.js b/client/src/views/list-with-categories.js index 6fdab8071a..98a438f988 100644 --- a/client/src/views/list-with-categories.js +++ b/client/src/views/list-with-categories.js @@ -496,7 +496,7 @@ class ListWithCategories extends ListView { selector: '.categories-container', selectable: true, showRoot: true, - rootName: this.translate(this.scope, 'scopeNamesPlural'), + //rootName: this.translate(this.scope, 'scopeNamesPlural'), buttonsDisabled: true, checkboxes: false, showEditLink: this.showEditLink, diff --git a/client/src/views/modals/select-records-with-categories.js b/client/src/views/modals/select-records-with-categories.js index 80cf015857..bc92f5dfd3 100644 --- a/client/src/views/modals/select-records-with-categories.js +++ b/client/src/views/modals/select-records-with-categories.js @@ -86,7 +86,7 @@ class SelectRecordsWithCategoriesModalView extends SelectRecordsModal { selectable: true, readOnly: true, showRoot: true, - rootName: this.translate(this.scope, 'scopeNamesPlural'), + //rootName: this.translate(this.scope, 'scopeNamesPlural'), buttonsDisabled: true, checkboxes: false, isExpanded: this.isExpanded, diff --git a/client/src/views/record/list-tree.js b/client/src/views/record/list-tree.js index 7f3007f08d..811c77e631 100644 --- a/client/src/views/record/list-tree.js +++ b/client/src/views/record/list-tree.js @@ -59,11 +59,9 @@ class ListTreeRecordView extends ListRecordView { data.showRoot = this.showRoot; if (data.showRoot) { - data.rootName = this.rootName || this.translate('Root'); + data.rootName = this.rootName || this.translate('Top Level'); } - data.showEditLink = this.showEditLink; - if (this.level === 0 && this.selectable && (this.selectedData || {}).id === null) { data.rootIsSelected = true; } @@ -76,7 +74,7 @@ class ListTreeRecordView extends ListRecordView { data.isExpanded = this.isExpanded; } - if (data.hasExpandedToggler || this.showEditLink) { + if (data.hasExpandedToggler) { data.showRootMenu = true; } @@ -106,10 +104,6 @@ class ListTreeRecordView extends ListRecordView { } } - if ('showRoot' in this.options) { - this.showEditLink = this.options.showEditLink; - } - if ('level' in this.options) { this.level = this.options.level; }