<nz-spin [nzSpinning]="_applicationLoading" [nzDelay]="500">
  <nz-tabset class="ctx-tabs-fixed" *ngIf="_applicationList.length > 0; else emptyTemplate" nzType="card">
    <nz-tab *ngFor="let application of _applicationList" [nzTitle]="application.source.name">
      <nz-tree #menuTreeComponent
               *ngIf="application.menuTreeNodeOptionList.length > 0; else emptyTemplate"
               [nzData]="application.menuTreeNodeOptionList"
               [nzCheckedKeys]="application.menuCheckedKeys"
               nzCheckable
               nzShowIcon
               (nzCheckBoxChange)="_updateMenuTreeStatus($event)"
               (nzDblClick)="_toggleMenuTreeNodeExpanded($event)"></nz-tree>
    </nz-tab>
  </nz-tabset>
</nz-spin>

<ng-template #emptyTemplate>
  <nz-empty class="ant-empty-small" nzNotFoundImage="simple"></nz-empty>
</ng-template>
