From ccfa9520dd5b7e572ffc0909979c56e0ff3299f2 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 6 Nov 2022 00:10:21 -0700 Subject: [PATCH] l10n: fix wrong syntax (fix #161) --- src/components/modal/AlbumForm.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/modal/AlbumForm.vue b/src/components/modal/AlbumForm.vue index ca307cdd..cb5b9009 100644 --- a/src/components/modal/AlbumForm.vue +++ b/src/components/modal/AlbumForm.vue @@ -69,9 +69,7 @@ {{ t("photos", "Add collaborators") }} - {{ editMode ? t("photos", "Save") : t("photos", "Create album") }} + {{ saveText }} @@ -103,9 +101,7 @@ - {{ editMode ? t("photos", "Save") : t("photos", "Create album") }} + {{ saveText }} @@ -162,6 +158,12 @@ export default class AlbumForm extends Mixins(GlobalMixin) { return Boolean(this.album); } + get saveText(): string { + return this.editMode + ? this.t("photos", "Save") + : this.t("photos", "Create album"); + } + /** * @return Whether sharing is enabled. */