mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 21:00:39 +08:00
Make subpanel container collapsed by default
This commit is contained in:
parent
b4c3b13718
commit
05396d7022
2 changed files with 3 additions and 3 deletions
|
@ -100,7 +100,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sub-panels">
|
||||
<div class="sub-panels {{(isCollapsed() && !openSubpanels()?.length) ? 'pb-1' : ''}}">
|
||||
<ng-container *ngFor="let subpanelKey of this.openSubpanels()">
|
||||
<ng-container *ngIf="(subpanels[subpanelKey]) as item">
|
||||
<scrm-subpanel *ngIf="item.show"
|
||||
|
|
|
@ -53,7 +53,7 @@ export class SubpanelContainerComponent implements OnInit, OnDestroy {
|
|||
|
||||
@Input() config: SubpanelContainerConfig;
|
||||
|
||||
isCollapsed = signal(false);
|
||||
isCollapsed = signal(true);
|
||||
toggleIcon = signal('arrow_down_filled');
|
||||
maxColumns$: Observable<number>;
|
||||
|
||||
|
@ -88,7 +88,7 @@ export class SubpanelContainerComponent implements OnInit, OnDestroy {
|
|||
|
||||
ngOnInit(): void {
|
||||
const module = this?.config?.parentModule ?? 'default';
|
||||
this.setCollapsed(isTrue(this.preferences.getUi(module, 'subpanel-container-collapse') ?? false));
|
||||
this.setCollapsed(isTrue(this.preferences.getUi(module, 'subpanel-container-collapse') ?? true));
|
||||
|
||||
const subpanelButtonLimits = this.systemConfigs.getConfigValue('recordview_subpanel_button_limits') ?? {};
|
||||
if (subpanelButtonLimits && Object.keys(subpanelButtonLimits).length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue