l10n: fix wrong syntax (fix #161)

pull/175/head
Varun Patil 2022-11-06 00:10:21 -07:00
parent db7695476c
commit ccfa9520dd
1 changed files with 10 additions and 8 deletions

View File

@ -69,9 +69,7 @@
{{ t("photos", "Add collaborators") }} {{ t("photos", "Add collaborators") }}
</NcButton> </NcButton>
<NcButton <NcButton
:aria-label=" :aria-label="saveText"
editMode ? t('photos', 'Save.') : t('photos', 'Create the album.')
"
type="primary" type="primary"
:disabled="albumName === '' || loading" :disabled="albumName === '' || loading"
@click="submit()" @click="submit()"
@ -80,7 +78,7 @@
<NcLoadingIcon v-if="loading" /> <NcLoadingIcon v-if="loading" />
<Send v-else /> <Send v-else />
</template> </template>
{{ editMode ? t("photos", "Save") : t("photos", "Create album") }} {{ saveText }}
</NcButton> </NcButton>
</span> </span>
</div> </div>
@ -103,9 +101,7 @@
</span> </span>
<span class="right-buttons"> <span class="right-buttons">
<NcButton <NcButton
:aria-label=" :aria-label="saveText"
editMode ? t('photos', 'Save.') : t('photos', 'Create the album.')
"
type="primary" type="primary"
:disabled="albumName.trim() === '' || loading" :disabled="albumName.trim() === '' || loading"
@click="submit(collaborators)" @click="submit(collaborators)"
@ -114,7 +110,7 @@
<NcLoadingIcon v-if="loading" /> <NcLoadingIcon v-if="loading" />
<Send v-else /> <Send v-else />
</template> </template>
{{ editMode ? t("photos", "Save") : t("photos", "Create album") }} {{ saveText }}
</NcButton> </NcButton>
</span> </span>
</template> </template>
@ -162,6 +158,12 @@ export default class AlbumForm extends Mixins(GlobalMixin) {
return Boolean(this.album); return Boolean(this.album);
} }
get saveText(): string {
return this.editMode
? this.t("photos", "Save")
: this.t("photos", "Create album");
}
/** /**
* @return Whether sharing is enabled. * @return Whether sharing is enabled.
*/ */