mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* update to latest js-api * fix the "ng lint" command * fix linting issues * fix lint issues * lint fixes * code fixes * fix html * fix html * update tests * test fixes * update tests * fix tests and api * fix code
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<header
|
|
mat-dialog-title
|
|
data-automation-id="content-node-selector-title">{{data?.title}}
|
|
</header>
|
|
|
|
<mat-dialog-content class="adf-login-dialog-content">
|
|
<adf-login-dialog-panel id="attach-file-login-panel" #adfLoginPanel *ngIf="!isLoggedIn()">
|
|
</adf-login-dialog-panel>
|
|
<adf-content-node-selector-panel *ngIf="isLoggedIn()"
|
|
id="attach-file-content-node"
|
|
[isSelectionValid]="data?.isSelectionValid"
|
|
(select)="onSelect($event)">
|
|
</adf-content-node-selector-panel>
|
|
</mat-dialog-content>
|
|
|
|
<mat-dialog-actions align="end">
|
|
<button
|
|
mat-button
|
|
(click)="close()"
|
|
data-automation-id="attach-file-dialog-actions-cancel">{{ 'ATTACH-FILE.ACTIONS.CANCEL' | translate }}
|
|
</button>
|
|
|
|
<button *ngIf="!isLoggedIn()"
|
|
mat-button
|
|
(click)="performLogin()"
|
|
data-automation-id="attach-file-dialog-actions-login">{{ 'ATTACH-FILE.ACTIONS.LOGIN' | translate }}
|
|
</button>
|
|
|
|
<button *ngIf="isLoggedIn()"
|
|
mat-button
|
|
[disabled]="!chosenNode"
|
|
class="adf-choose-action"
|
|
(click)="onClick()"
|
|
data-automation-id="attach-file-dialog-actions-choose">{{ buttonActionName | translate }}
|
|
</button>
|
|
|
|
</mat-dialog-actions>
|