diff --git a/client/res/templates/record/list-tree.tpl b/client/res/templates/record/list-tree.tpl index 11654099db..b00595ef7d 100644 --- a/client/res/templates/record/list-tree.tpl +++ b/client/res/templates/record/list-tree.tpl @@ -19,6 +19,7 @@ class="action link{{#if rootIsSelected}} text-bold{{/if}}" data-action="selectRoot" >{{rootName}} + {{#if hasExpandToggle}} {{/if}} + {{/if}} {{/if}} diff --git a/client/src/views/record/list-tree.js b/client/src/views/record/list-tree.js index 5a6711544d..c27ed11813 100644 --- a/client/src/views/record/list-tree.js +++ b/client/src/views/record/list-tree.js @@ -74,6 +74,7 @@ class ListTreeRecordView extends ListRecordView { data.noData = data.createDisabled && !data.rowDataList.length && !data.showRoot; data.expandToggleInactive = this.expandToggleInactive; + data.hasExpandToggle = !this.getUser().isPortal(); return data; }