mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4894] Json editor dialog (#5082)
* move download-zip to its own folder * json dialog * update docs * update test * disable e2e test * json widget for the Form * remove deprecated test * fix tests, update display text name
This commit is contained in:
13
lib/core/dialogs/edit-json/edit-json.dialog.html
Normal file
13
lib/core/dialogs/edit-json/edit-json.dialog.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<h1 mat-dialog-title>{{ title | translate }}</h1>
|
||||
<mat-dialog-content>
|
||||
<textarea [(ngModel)]="value" [attr.readonly]="!editable"></textarea>
|
||||
</mat-dialog-content>
|
||||
|
||||
<mat-dialog-actions align="end">
|
||||
<button mat-button mat-dialog-close cdkFocusInitial>
|
||||
{{ 'CORE.DIALOG.EDIT_JSON.CLOSE' | translate }}
|
||||
</button>
|
||||
<button *ngIf="editable" mat-button [mat-dialog-close]="value">
|
||||
{{ 'CORE.DIALOG.EDIT_JSON.UPDATE' | translate }}
|
||||
</button>
|
||||
</mat-dialog-actions>
|
Reference in New Issue
Block a user