#1566 ticket.sales state autocomplete
This commit is contained in:
parent
d94ca9c538
commit
a7c5a9e598
|
@ -8,7 +8,10 @@ export default class ButtonMenu extends Input {
|
|||
super($element, $scope);
|
||||
this.$transclude = $transclude;
|
||||
this.input = this.element.querySelector('.mdl-button');
|
||||
$element.on('click', e => this.onClick(e));
|
||||
$element.on('click', e => {
|
||||
if (!this.disabled)
|
||||
this.onClick(e);
|
||||
});
|
||||
}
|
||||
|
||||
get model() {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
<vn-button-menu
|
||||
disabled="!$ctrl.isEditable"
|
||||
label="State"
|
||||
value-field="id"
|
||||
url="/ticket/api/States/alertLevelIs0"
|
||||
on-change="$ctrl.onStateChange(value)">
|
||||
</vn-button-menu>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import ngModule from '../module';
|
||||
import './style.scss';
|
||||
import {throws} from 'assert';
|
||||
|
||||
class Controller {
|
||||
constructor($scope, $state, $http, vnApp, $translate) {
|
||||
|
|
Loading…
Reference in New Issue