From 9561dcbe80ed4d39481538ea6ca26078d3252437 Mon Sep 17 00:00:00 2001 From: Richard Park Date: Mon, 13 Jan 2020 15:17:58 +0900 Subject: [PATCH] bug fixed --- .../native/components/top-bar.component.html | 27 ++++++++++++++----- .../components/inline-edit-input.component.ts | 10 +++++-- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.html b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.html index 17aa367e..2063a3da 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.html @@ -335,8 +335,12 @@ @@ -353,8 +358,12 @@ @@ -371,8 +381,12 @@ diff --git a/projects/ucap-webmessenger-ui/src/lib/components/inline-edit-input.component.ts b/projects/ucap-webmessenger-ui/src/lib/components/inline-edit-input.component.ts index 56ea1bbd..633108a5 100644 --- a/projects/ucap-webmessenger-ui/src/lib/components/inline-edit-input.component.ts +++ b/projects/ucap-webmessenger-ui/src/lib/components/inline-edit-input.component.ts @@ -7,7 +7,11 @@ import { Component, OnInit, Output, EventEmitter } from '@angular/core'; }) export class InlineEditInputComponent implements OnInit { @Output() - apply = new EventEmitter(); + edit = new EventEmitter(); + @Output() + cancel = new EventEmitter(); + @Output() + apply = new EventEmitter(); get editMode() { return this._editMode; @@ -24,14 +28,16 @@ export class InlineEditInputComponent implements OnInit { onClickEdit(event: Event) { this.editMode = true; + this.edit.emit(event); } onClickCancel(event: Event) { this.editMode = false; + this.cancel.emit(event); } onClickApply(event: Event) { this.editMode = false; - this.apply.emit(); + this.apply.emit(event); } }