| if (!item.items) { | if (!item.items) { | ||||
| this.menuService.itemClicked.emit(item); | this.menuService.itemClicked.emit(item); | ||||
| //console.log("emit on select : " + item.text); | //console.log("emit on select : " + item.text); | ||||
| console.log(this.loanEdit); | |||||
| if ( item.popup == "loanEdit"){ | if ( item.popup == "loanEdit"){ | ||||
| this.loanEdit.somedata = "changed"; | this.loanEdit.somedata = "changed"; | ||||
| this.loanEdit.open('dialog'); | this.loanEdit.open('dialog'); |
| this[component + 'Opened'] = true; | this[component + 'Opened'] = true; | ||||
| }; | }; | ||||
| LoanEditComponent.prototype.action = function (status) { | LoanEditComponent.prototype.action = function (status) { | ||||
| var _this = this; | |||||
| console.log("Dialog result: " + status); | console.log("Dialog result: " + status); | ||||
| setTimeout(function () { | |||||
| _this.dialogOpened = false; | |||||
| }, 2000); | |||||
| this.dialogOpened = false; | |||||
| }; | }; | ||||
| LoanEditComponent = __decorate([ | LoanEditComponent = __decorate([ | ||||
| core_1.Component({ | core_1.Component({ |
| public action(status) { | public action(status) { | ||||
| console.log(`Dialog result: ${status}`); | console.log(`Dialog result: ${status}`); | ||||
| setTimeout(()=>{ | |||||
| this.dialogOpened = false; | |||||
| },2000); | |||||
| this.dialogOpened = false; | |||||
| } | } | ||||
| } | } |