<mat-tab-group fxFlexFill>
    <mat-tab *ngFor='let action of source.modelInfo.actions'
        [disabled]="authenticationService.isNotAuthorized(action.roles) | async">
        <ng-template mat-tab-label>
            <mat-icon [matTooltip]="action.name">{{ action.icon }}</mat-icon>
        </ng-template>
        <gisaf-action-form fxFlex='0 1 0'
            [action]='action'
            [source]='source'
        >
        </gisaf-action-form>
    </mat-tab>
    <mat-tab *ngFor='let downloader of source.modelInfo.downloaders'>
        <ng-template mat-tab-label>
            <mat-icon [matTooltip]="downloader.name">{{ downloader.icon }}</mat-icon>
        </ng-template>
        <gisaf-downloader
            [downloader]='downloader'
            [source]='source'
        >
        </gisaf-downloader>
    </mat-tab>
</mat-tab-group>