feat(routes_tickets): button up when add tickets
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
98195bf7b0
commit
fb6e443f03
|
@ -121,15 +121,17 @@
|
||||||
data="$ctrl.possibleTickets">
|
data="$ctrl.possibleTickets">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<vn-dialog
|
<vn-dialog
|
||||||
vn-id="possibleTicketsDialog"
|
vn-id="possibleTicketsDialog">
|
||||||
on-accept="$ctrl.setTicketsRoute()"
|
<tpl-title>
|
||||||
message="Tickets to add">
|
<vn-horizontal>
|
||||||
<tpl-buttons>
|
<span translate>Tickets to add</span>
|
||||||
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
<div style="display: block; margin-right: 50px; text-align: right;">
|
||||||
<button response="accept" translate>Add</button>
|
<vn-button label="Add" ng-click="$ctrl.setTicketsRoute()"></vn-button>
|
||||||
</tpl-buttons>
|
</div>
|
||||||
|
</vn-horizontal>
|
||||||
|
</tpl-title>
|
||||||
<tpl-body>
|
<tpl-body>
|
||||||
<vn-data-viewer class="vn-pa-md" model="possibleTicketsModel">
|
<vn-data-viewer model="possibleTicketsModel">
|
||||||
<vn-table model="possibleTicketsModel" auto-load="false">
|
<vn-table model="possibleTicketsModel" auto-load="false">
|
||||||
<vn-thead>
|
<vn-thead>
|
||||||
<vn-tr>
|
<vn-tr>
|
||||||
|
|
|
@ -132,6 +132,7 @@ class Controller extends Section {
|
||||||
this.$.model.data = this.$.model.data.concat(tickets);
|
this.$.model.data = this.$.model.data.concat(tickets);
|
||||||
this.vnApp.showSuccess(this.$t('Data saved!'));
|
this.vnApp.showSuccess(this.$t('Data saved!'));
|
||||||
this.updateVolume();
|
this.updateVolume();
|
||||||
|
this.$.possibleTicketsDialog.hide();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue