diff --git a/modules/ticket/front/basic-data/step-one/index.html b/modules/ticket/front/basic-data/step-one/index.html index 498630b87f..bc19788e0f 100644 --- a/modules/ticket/front/basic-data/step-one/index.html +++ b/modules/ticket/front/basic-data/step-one/index.html @@ -7,7 +7,7 @@
- - {{::!isActive ? '(Inactive)' : ''}} @@ -65,7 +66,7 @@ - diff --git a/modules/ticket/front/basic-data/step-one/index.js b/modules/ticket/front/basic-data/step-one/index.js index f532265e22..ecb5aaa30b 100644 --- a/modules/ticket/front/basic-data/step-one/index.js +++ b/modules/ticket/front/basic-data/step-one/index.js @@ -289,6 +289,17 @@ class Controller extends Component { } return {}; } + + isEditable(a) { + return this.$http.get(`Tickets/${this.ticket.id}/isEditable`).then(res => { + console.log(res.data); + if (!res.data) { + return this.vnApp.showError( + this.$t(`This ticket is not editable`) + ); + } + }); + } } ngModule.vnComponent('vnTicketBasicDataStepOne', {