l10n: fix wrong syntax (fix #161)
parent
db7695476c
commit
ccfa9520dd
|
@ -69,9 +69,7 @@
|
|||
{{ t("photos", "Add collaborators") }}
|
||||
</NcButton>
|
||||
<NcButton
|
||||
:aria-label="
|
||||
editMode ? t('photos', 'Save.') : t('photos', 'Create the album.')
|
||||
"
|
||||
:aria-label="saveText"
|
||||
type="primary"
|
||||
:disabled="albumName === '' || loading"
|
||||
@click="submit()"
|
||||
|
@ -80,7 +78,7 @@
|
|||
<NcLoadingIcon v-if="loading" />
|
||||
<Send v-else />
|
||||
</template>
|
||||
{{ editMode ? t("photos", "Save") : t("photos", "Create album") }}
|
||||
{{ saveText }}
|
||||
</NcButton>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -103,9 +101,7 @@
|
|||
</span>
|
||||
<span class="right-buttons">
|
||||
<NcButton
|
||||
:aria-label="
|
||||
editMode ? t('photos', 'Save.') : t('photos', 'Create the album.')
|
||||
"
|
||||
:aria-label="saveText"
|
||||
type="primary"
|
||||
:disabled="albumName.trim() === '' || loading"
|
||||
@click="submit(collaborators)"
|
||||
|
@ -114,7 +110,7 @@
|
|||
<NcLoadingIcon v-if="loading" />
|
||||
<Send v-else />
|
||||
</template>
|
||||
{{ editMode ? t("photos", "Save") : t("photos", "Create album") }}
|
||||
{{ saveText }}
|
||||
</NcButton>
|
||||
</span>
|
||||
</template>
|
||||
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue