no expand toggle in portal

This commit is contained in:
Yuri Kuznetsov
2024-10-22 17:45:55 +03:00
parent a35047e770
commit fa947e0d15
2 changed files with 3 additions and 0 deletions
@@ -19,6 +19,7 @@
class="action link{{#if rootIsSelected}} text-bold{{/if}}"
data-action="selectRoot"
>{{rootName}}</a>
{{#if hasExpandToggle}}
<a
role="button"
data-role="expandButtonContainer"
@@ -32,6 +33,7 @@
<span class="fas fa-level-down-alt fa-rotate-270 fa-sm text-soft"></span>
{{/if}}
</a>
{{/if}}
</div>
{{/if}}
+1
View File
@@ -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;
}