Fix: Delete confirmation was borked for all except Journal.

This commit is contained in:
tanshu 2018-05-18 12:19:40 +05:30
parent 98e97f63c0
commit 552781b5c6
11 changed files with 11 additions and 1 deletions

View File

@ -34,6 +34,7 @@
let modalInstance = this.$modal.open({ let modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;

View File

@ -30,6 +30,7 @@ export class ClientController {
const modalInstance = this.$modal.open({ const modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;

View File

@ -52,6 +52,7 @@ export class EmployeeController {
const modalInstance = this.$modal.open({ const modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;

View File

@ -99,6 +99,7 @@ export class IncentiveController {
const modalInstance = this.$modal.open({ const modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;

View File

@ -250,6 +250,7 @@ export class IssueController {
const modalInstance = this.$modal.open({ const modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;

View File

@ -1,6 +1,6 @@
export class JournalModalController { export class JournalModalController {
static $inject = ['$scope', '$uibModalInstance', 'MathSolver', 'Account']; static $inject = ['$scope', '$uibModalInstance', 'MathSolver', 'Account'];
edit:any; edit: any;
constructor(public $scope, public $modalInstance, public MathSolver, public Account) { constructor(public $scope, public $modalInstance, public MathSolver, public Account) {
this.edit = $scope.$resolve.edit; this.edit = $scope.$resolve.edit;

View File

@ -191,6 +191,7 @@ export class PaymentController {
const modalInstance = this.$modal.open({ const modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;

View File

@ -184,6 +184,7 @@ export class PurchaseReturnController {
const modalInstance = this.$modal.open({ const modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;

View File

@ -187,6 +187,7 @@ export class PurchaseController {
const modalInstance = this.$modal.open({ const modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;

View File

@ -191,6 +191,7 @@ export class ReceiptController {
const modalInstance = this.$modal.open({ const modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;

View File

@ -150,6 +150,7 @@ export class SalaryDeductionController {
const modalInstance = this.$modal.open({ const modalInstance = this.$modal.open({
backdrop: true, backdrop: true,
templateUrl: '/template/modal/confirm.html', templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', class { controller: ['$uibModalInstance', class {
title: any; title: any;
body: any; body: any;