* Provided way to config applications from config (#4498)

editor.
This commit is contained in:
siva kumar 2019-03-26 17:43:05 +05:30 committed by Maurizio Vitale
parent 0a3c4367a0
commit 31eb1d8ee7
2 changed files with 14 additions and 0 deletions

View File

@ -42,6 +42,13 @@
</button>
</mat-list-item>
<mat-list-item (click)="applicationListCloudConfClick()">
<a matLine id="adf-apps-cloud-conf">Application List Cloud</a>
<button mat-icon-button>
<mat-icon>info</mat-icon>
</button>
</mat-list-item>
<mat-list-item (click)="taskListCloudConfClick()">
<a matLine id="adf-task-list-cloud-conf">Task List Cloud</a>
<button mat-icon-button>

View File

@ -181,6 +181,13 @@ export class ConfigEditorComponent {
});
}
applicationListCloudConfClick() {
this.isUserPreference = false;
this.code = JSON.stringify(this.appConfig.config['alfresco-deployed-apps']);
this.field = 'alfresco-deployed-apps';
this.indentCode();
}
indentCode() {
setTimeout(() => {
this.editor.getAction('editor.action.formatDocument').run();