Skip to content
Snippets Groups Projects
Commit 663c8031 authored by kbeyro's avatar kbeyro
Browse files

fix json validation error

parent 3253e039
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
<div style="margin-bottom: 10px">
{{ 'APPS_MANAGEMENT.ADD_JSON_TEXTAREA'| translate}}
</div>
<textarea rows="10" cols="100" pInputTextarea [(ngModel)]="jsonText"></textarea>
<textarea rows="10" cols="100" pInputTextarea [(ngModel)]="jsonText" (keyup)="this.JsonError = false"></textarea>
</div>
<div class="flex flex-row justify-content-center justify-content-center mt-2">
<button *ngIf="jsonText.length >0" pButton class="btn btn-success"
......
<nmaas-modal style="width: 600px; height: 800px">
<div class="nmaas-modal-header">{{ 'APPS_MANAGEMENT.ADD_JSON_version'| translate}}</div>
<div class="nmaas-modal-header">{{ 'APPS_MANAGEMENT.ADD_JSON_VERSION'| translate}}</div>
<div class="nmaas-modal-body">
<div style="margin-bottom: 10px">
{{ 'APPS_MANAGEMENT.ADD_JSON_INFO'| translate}}
......@@ -14,7 +14,7 @@
<div style="margin-bottom: 10px">
{{ 'APPS_MANAGEMENT.ADD_JSON_TEXTAREA'| translate}}
</div>
<textarea rows="10" cols="100" pInputTextarea [(ngModel)]="jsonText"></textarea>
<textarea rows="10" cols="100" pInputTextarea [(ngModel)]="jsonText" (keyup)="this.JsonError = false"></textarea>
</div>
<div class="flex flex-row justify-content-center justify-content-center mt-2">
<button *ngIf="jsonText.length >0" pButton class="btn btn-success"
......
......@@ -48,7 +48,7 @@ export class AppAddJsonVersionAppComponent implements OnInit {
},
error => {
console.log(error)
this.error = error.message
this.error = error.error.message
})
} catch (e) {
console.warn('invalid json')
......@@ -72,7 +72,7 @@ export class AppAddJsonVersionAppComponent implements OnInit {
},
error => {
console.log(error)
this.error = error.message
this.error = error.error.message
})
} catch (e) {
console.warn('invalid json')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment