Minor string fixes

pull/461/head
Varun Patil 2023-03-08 08:43:22 -08:00
parent e8a4bcffbb
commit a07ccb5b71
3 changed files with 7 additions and 8 deletions

View File

@ -171,7 +171,7 @@ export default defineComponent({
if: () => this.routeIsArchive(), if: () => this.routeIsArchive(),
}, },
{ {
name: t("memories", "Edit Metadata"), name: t("memories", "Edit metadata"),
icon: EditFileIcon, icon: EditFileIcon,
callback: this.editMetadataSelection.bind(this), callback: this.editMetadataSelection.bind(this),
}, },
@ -191,11 +191,10 @@ export default defineComponent({
name: t("memories", "Add to album"), name: t("memories", "Add to album"),
icon: AlbumsIcon, icon: AlbumsIcon,
callback: this.addToAlbum.bind(this), callback: this.addToAlbum.bind(this),
if: (self: typeof this) => if: (self: any) => self.config_albumsEnabled && !self.routeIsAlbum(),
self.config_albumsEnabled && !self.routeIsAlbum(),
}, },
{ {
name: t("memories", "Move to another person"), name: t("memories", "Move to person"),
icon: MoveIcon, icon: MoveIcon,
callback: this.moveSelectionToPerson.bind(this), callback: this.moveSelectionToPerson.bind(this),
if: () => this.$route.name === "recognize", if: () => this.$route.name === "recognize",

View File

@ -1,7 +1,7 @@
<template> <template>
<Modal v-if="show" @close="close"> <Modal v-if="show" @close="close">
<template #title> <template #title>
{{ t("memories", "Edit Metadata") }} {{ t("memories", "Edit metadata") }}
</template> </template>
<template #buttons> <template #buttons>

View File

@ -132,12 +132,12 @@
</template> </template>
</NcActionButton> </NcActionButton>
<NcActionButton <NcActionButton
:aria-label="t('memories', 'Edit Metadata')" :aria-label="t('memories', 'Edit metadata')"
v-if="!routeIsPublic" v-if="!routeIsPublic"
@click="editMetadata" @click="editMetadata"
:close-after-click="true" :close-after-click="true"
> >
{{ t("memories", "Edit Metadata") }} {{ t("memories", "Edit metadata") }}
<template #icon> <template #icon>
<EditFileIcon :size="24" /> <EditFileIcon :size="24" />
</template> </template>
@ -1165,7 +1165,7 @@ export default defineComponent({
}, },
/** /**
* Edit Metadata for current photo * Edit metadata for current photo
*/ */
editMetadata() { editMetadata() {
globalThis.editMetadata([globalThis.currentViewerPhoto]); globalThis.editMetadata([globalThis.currentViewerPhoto]);