From 2abba9da5ddc23bc9e3d36e3418c6a37085a4c0f Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 10 Oct 2022 20:40:58 -0700 Subject: [PATCH] Add face name change modal (fix #64) --- src/components/FaceEditModal.vue | 105 +++++++++++++++++++++++++++++++ src/components/FaceTopMatter.vue | 36 +++++++++-- 2 files changed, 135 insertions(+), 6 deletions(-) create mode 100644 src/components/FaceEditModal.vue diff --git a/src/components/FaceEditModal.vue b/src/components/FaceEditModal.vue new file mode 100644 index 00000000..10aa811b --- /dev/null +++ b/src/components/FaceEditModal.vue @@ -0,0 +1,105 @@ + + + + + \ No newline at end of file diff --git a/src/components/FaceTopMatter.vue b/src/components/FaceTopMatter.vue index ec9f5594..ddf57080 100644 --- a/src/components/FaceTopMatter.vue +++ b/src/components/FaceTopMatter.vue @@ -6,7 +6,19 @@ - {{ name }} + +
{{ name }}
+ +
+ + + {{ t('memories', 'Rename person') }} + + + +
+ + @@ -15,17 +27,22 @@ import { Component, Mixins, Watch } from 'vue-property-decorator'; import GlobalMixin from '../mixins/GlobalMixin'; import { NcActions, NcActionButton } from '@nextcloud/vue'; +import FaceEditModal from './FaceEditModal.vue'; import BackIcon from 'vue-material-design-icons/ArrowLeft.vue'; +import EditIcon from 'vue-material-design-icons/Pencil.vue'; @Component({ components: { NcActions, NcActionButton, + FaceEditModal, BackIcon, + EditIcon, }, }) export default class FaceTopMatter extends Mixins(GlobalMixin) { private name: string = ''; + private showEditModal: boolean = false; @Watch('$route') async routeChange(from: any, to: any) { @@ -48,16 +65,23 @@ export default class FaceTopMatter extends Mixins(GlobalMixin) { \ No newline at end of file