Bug #826 order.summary desde el index no es un popover

This commit is contained in:
Gerard 2018-11-19 08:42:29 +01:00
parent 2e974db1e8
commit fa83a061e5
3 changed files with 20 additions and 3 deletions

View File

@ -75,3 +75,10 @@
<vn-order-summary order="$ctrl.order"></vn-order-summary>
</tpl-body>
</vn-dialog>
<vn-dialog
vn-id="summary"
class="dialog-summary summary">
<tpl-body>
<vn-order-summary order="$ctrl.selectedOrder"></vn-order-summary>
</tpl-body>
</vn-dialog>

View File

@ -1,4 +1,5 @@
import ngModule from '../module';
import './style.scss';
export default class Controller {
constructor($scope) {
@ -48,9 +49,11 @@ export default class Controller {
this.$scope.popover.relocate();
}
preview(order) {
this.$scope.orderSummaryDialog.show();
this.order = order;
preview(event, order) {
event.preventDefault();
event.stopImmediatePropagation();
this.selectedOrder = order;
this.$scope.summary.show();
}
}

View File

@ -0,0 +1,7 @@
vn-order-index {
vn-dialog.summary {
div {
min-width: 900px;
}
}
}