|
|
@ -114,8 +114,8 @@ |
|
|
matTooltip="{{'dashboard.edit-mode' | translate}}" |
|
|
matTooltip="{{'dashboard.edit-mode' | translate}}" |
|
|
matTooltipPosition="below"> |
|
|
matTooltipPosition="below"> |
|
|
<mat-icon>edit</mat-icon></button> |
|
|
<mat-icon>edit</mat-icon></button> |
|
|
<button class="lt-lg:!hidden" mat-stroked-button (click)="toggleDashboardEditMode()"> |
|
|
<button class="lt-lg:!hidden" mat-stroked-button (click)="toggleDashboardEditMode()"> |
|
|
<mat-icon>edit</mat-icon>{{'dashboard.edit-mode' | translate}}</button> |
|
|
<mat-icon>edit</mat-icon>{{'dashboard.edit-mode' | translate}}</button> |
|
|
} |
|
|
} |
|
|
@if (isEdit) { |
|
|
@if (isEdit) { |
|
|
<button class="gt-md:!hidden" mat-icon-button (click)="saveDashboard()" [disabled]="isLoading$ | async" |
|
|
<button class="gt-md:!hidden" mat-icon-button (click)="saveDashboard()" [disabled]="isLoading$ | async" |
|
|
@ -264,11 +264,10 @@ |
|
|
[aliasController]="dashboardCtx.aliasController"> |
|
|
[aliasController]="dashboardCtx.aliasController"> |
|
|
</tb-aliases-entity-select> |
|
|
</tb-aliases-entity-select> |
|
|
@if (!isEdit && !widgetEditMode && !embedded && displayDashboardsSelect()) { |
|
|
@if (!isEdit && !widgetEditMode && !embedded && displayDashboardsSelect()) { |
|
|
<tb-dashboard-select |
|
|
<tb-dashboard-select [(ngModel)]="currentDashboardId" |
|
|
[(ngModel)]="currentDashboardId" |
|
|
(ngModelChange)="currentDashboardIdChanged(currentDashboardId)" |
|
|
(ngModelChange)="currentDashboardIdChanged(currentDashboardId)" |
|
|
[customerId]="currentCustomerId" |
|
|
[customerId]="currentCustomerId" |
|
|
[dashboardsScope]="currentDashboardScope"> |
|
|
[dashboardsScope]="currentDashboardScope"> |
|
|
|
|
|
</tb-dashboard-select> |
|
|
</tb-dashboard-select> |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
@ -276,12 +275,12 @@ |
|
|
</tb-dashboard-toolbar> |
|
|
</tb-dashboard-toolbar> |
|
|
</section> |
|
|
</section> |
|
|
<section class="tb-dashboard-container tb-absolute-fill" |
|
|
<section class="tb-dashboard-container tb-absolute-fill" |
|
|
tb-toast toastTarget="dashboardRoot" |
|
|
tb-toast toastTarget="dashboardRoot" |
|
|
#dashboardContainer |
|
|
#dashboardContainer |
|
|
[class.is-fullscreen]="forceFullscreen" |
|
|
[class.is-fullscreen]="forceFullscreen" |
|
|
[class.tb-dashboard-toolbar-opened]="toolbarOpened" |
|
|
[class.tb-dashboard-toolbar-opened]="toolbarOpened" |
|
|
[class.tb-dashboard-toolbar-animated]="isToolbarOpenedAnimate" |
|
|
[class.tb-dashboard-toolbar-animated]="isToolbarOpenedAnimate" |
|
|
[class.tb-dashboard-toolbar-closed]="!toolbarOpened"> |
|
|
[class.tb-dashboard-toolbar-closed]="!toolbarOpened"> |
|
|
<mat-drawer-container hasBackdrop="false" class="tb-absolute-fill tb-dashboard-drawer-container"> |
|
|
<mat-drawer-container hasBackdrop="false" class="tb-absolute-fill tb-dashboard-drawer-container"> |
|
|
<mat-drawer-content #dashboardContent class="flex flex-col items-start justify-center"> |
|
|
<mat-drawer-content #dashboardContent class="flex flex-col items-start justify-center"> |
|
|
@if (!widgetEditMode) { |
|
|
@if (!widgetEditMode) { |
|
|
@ -297,7 +296,7 @@ |
|
|
</section> |
|
|
</section> |
|
|
} |
|
|
} |
|
|
<mat-drawer-container class="tb-dashboard-layouts flex-1" |
|
|
<mat-drawer-container class="tb-dashboard-layouts flex-1" |
|
|
[class.tb-shrinked]="isEditingWidget"> |
|
|
[class.tb-shrinked]="isEditingWidget"> |
|
|
@if (layouts.right.show) { |
|
|
@if (layouts.right.show) { |
|
|
<mat-drawer |
|
|
<mat-drawer |
|
|
id="tb-right-layout" |
|
|
id="tb-right-layout" |
|
|
|