All files / src/app app.component.html

97.67% Statements 42/43
85.71% Branches 12/14
100% Functions 2/2
96.15% Lines 25/26

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40110x   60898x       60898x 110x 60898x   86x 86x   54322x 54322x 87x   54322x 27115x   54322x 46x   86x 54322x 86x     86x 86x 86x   60898x 111x 111x 111x   110x    
<p-toast position="bottom-right" />
 
@if (!isCloudReachable) {
  <app-global-error></app-global-error>
}
 
@if (isCloudReachable) {
  <div>
    @if (display_bars) {
      <div>
        <div class="page-content">
          <app-header></app-header>
          <div class="main-content">
            <div class="leftbar-container" [ngClass]="{'collapsed': isCollapsed}">
              @if (!isCollapsed) {
                <app-leftbar></app-leftbar>
              }
              @if (!isCollapsed) {
                <p-button class='floating-btn' icon="pi pi-arrow-left" [rounded]="true" (click)="toggleSidebar()"/>
              }
              @if (isCollapsed) {
                <p-button class='floating-btn' icon="pi pi-arrow-right" [rounded]="true" (click)="toggleSidebar()"/>
              }
            </div>
            <div class="main-page" [ngClass]="{'extended': isCollapsed}">
              <router-outlet></router-outlet>
            </div>
          </div>
        </div>
        <app-footer></app-footer>
      </div>
    }
    @if (!display_bars) {
      <div>
        <router-outlet ></router-outlet>
      </div>
    }
  </div>
}