From 161eb4294227e2fec4a6b17b286e422c0a129722 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 14 Jun 2018 11:59:35 +0200 Subject: [PATCH] Cleanup code. --- src/operations/operationRow.component.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/operations/operationRow.component.ts b/src/operations/operationRow.component.ts index 2c8afdc..3d6985b 100644 --- a/src/operations/operationRow.component.ts +++ b/src/operations/operationRow.component.ts @@ -1,6 +1,6 @@ // vim: set tw=80 ts=2 sw=2 sts=2 : import { CurrencyPipe } from '@angular/common'; -import { Component, Inject, Input, Output, EventEmitter } from '@angular/core'; +import { Component, Inject, Input } from '@angular/core'; import { Router } from '@angular/router'; import { Logger } from '@nsalaun/ng-logger'; @@ -77,7 +77,6 @@ import { OperationDeleteModalComponent } from './operationDeleteModal.component' export class OperationRowComponent { @Input('operation-row') operation: Operation; @Input() account: Account; - @Output() needsReload: EventEmitter = new EventEmitter(); constructor( private operationService: OperationService, @@ -105,8 +104,6 @@ export class OperationRowComponent { return this.operationService.update(operation).subscribe((operation) => { this.toastrService.success('Operation #' + operation.id + ' saved.'); - this.needsReload.emit(); - this.logger.info('Reload route', this.router.url); this.router.navigateByUrl(this.router.url); }, (result) => { @@ -135,8 +132,6 @@ export class OperationRowComponent { return this.operationService.delete(operation).subscribe(() => { this.toastrService.success('Operation #' + id + ' deleted.'); - this.needsReload.emit(); - this.logger.info('Reload route', this.router.url); this.router.navigateByUrl(this.router.url); }, (result) => {