From e923913d5d81876d8fe0c40e4a6f592bad28149a Mon Sep 17 00:00:00 2001 From: jovuit Date: Mon, 11 Mar 2019 10:11:00 +0100 Subject: [PATCH] Moved privacy/visibility labels out of Form.vue to use the ones in mixins/Translations.vue --- changes/changelog.d/748.enhancement | 1 + front/src/components/mixins/Translations.vue | 1 + front/src/components/playlists/Form.vue | 8 ++-- front/src/views/content/libraries/Card.vue | 41 +++++++++----------- front/src/views/content/libraries/Form.vue | 12 ++---- 5 files changed, 29 insertions(+), 34 deletions(-) create mode 100644 changes/changelog.d/748.enhancement diff --git a/changes/changelog.d/748.enhancement b/changes/changelog.d/748.enhancement new file mode 100644 index 000000000..1515b08a2 --- /dev/null +++ b/changes/changelog.d/748.enhancement @@ -0,0 +1 @@ +Labels for privacy levels are now consistently grabbed from a common source instead of being hardcoded everytime they are needed. diff --git a/front/src/components/mixins/Translations.vue b/front/src/components/mixins/Translations.vue index 0ecc53386..e58ca8add 100644 --- a/front/src/components/mixins/Translations.vue +++ b/front/src/components/mixins/Translations.vue @@ -10,6 +10,7 @@ export default { choices: { me: this.$pgettext('Content/Settings/Dropdown', 'Nobody except me'), instance: this.$pgettext('Content/Settings/Dropdown', 'Everyone on this instance'), + everyone: this.$pgettext('Content/Settings/Dropdown', 'Everyone, across all instances'), } } }, diff --git a/front/src/components/playlists/Form.vue b/front/src/components/playlists/Form.vue index e7a761b37..4fc905fc6 100644 --- a/front/src/components/playlists/Form.vue +++ b/front/src/components/playlists/Form.vue @@ -42,10 +42,12 @@ diff --git a/front/src/views/content/libraries/Form.vue b/front/src/views/content/libraries/Form.vue index 00db42380..c269e2721 100644 --- a/front/src/views/content/libraries/Form.vue +++ b/front/src/views/content/libraries/Form.vue @@ -19,7 +19,7 @@

You are able to share your library with other people, regardless of its visibility.