Bug #826 order.summary desde el index no es un popover
This commit is contained in:
parent
2e974db1e8
commit
fa83a061e5
|
@ -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>
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
vn-order-index {
|
||||
vn-dialog.summary {
|
||||
div {
|
||||
min-width: 900px;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue