Compare commits
3 Commits
dev
...
1877-ticke
Author | SHA1 | Date |
---|---|---|
|
6637514909 | |
|
567dfd4aca | |
|
a5fe335e46 |
|
@ -46,6 +46,7 @@
|
|||
show-field="nickname"
|
||||
value-field="id"
|
||||
ng-model="$ctrl.addressId"
|
||||
on-change="$ctrl.isEditable($ctrl.addressId)"
|
||||
order="isActive DESC">
|
||||
<tpl-item class="address" ng-class="::{inactive: !isActive}">
|
||||
<span class="inactive" translate>{{::!isActive ? '(Inactive)' : ''}}</span>
|
||||
|
|
|
@ -291,6 +291,17 @@ class Controller extends Component {
|
|||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
isEditable() {
|
||||
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', {
|
||||
|
|
Loading…
Reference in New Issue