From fa947e0d15ea74ad407fab273a0c5b72e7fd30e2 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 22 Oct 2024 17:45:55 +0300 Subject: [PATCH] no expand toggle in portal --- client/res/templates/record/list-tree.tpl | 2 ++ client/src/views/record/list-tree.js | 1 + 2 files changed, 3 insertions(+) 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; }