summaryrefslogtreecommitdiffstats
path: root/settings/src/components/userList/userRow.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-04-10 13:24:40 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-16 09:50:21 +0200
commit8bca1558c3d4056c1bfcb746516f9394fc93f09f (patch)
treec36aa5ab51c514159c2b5a4efc4b05f4281f0ea2 /settings/src/components/userList/userRow.vue
parent82e1f182c826b3a586cef59e9a4e90e1a4b9eb1f (diff)
downloadnextcloud-server-8bca1558c3d4056c1bfcb746516f9394fc93f09f.tar.gz
nextcloud-server-8bca1558c3d4056c1bfcb746516f9394fc93f09f.zip
Settings users list new user language
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src/components/userList/userRow.vue')
-rw-r--r--settings/src/components/userList/userRow.vue16
1 files changed, 2 insertions, 14 deletions
diff --git a/settings/src/components/userList/userRow.vue b/settings/src/components/userList/userRow.vue
index 9aa4fb3b852..e4915bd5b23 100644
--- a/settings/src/components/userList/userRow.vue
+++ b/settings/src/components/userList/userRow.vue
@@ -89,7 +89,7 @@ import Multiselect from 'vue-multiselect';
export default {
name: 'userRow',
- props: ['user', 'settings', 'groups', 'subAdminsGroups', 'quotaOptions', 'showConfig'],
+ props: ['user', 'settings', 'groups', 'subAdminsGroups', 'quotaOptions', 'showConfig', 'languages'],
components: {
popoverMenu,
Multiselect
@@ -175,19 +175,7 @@ export default {
return this.$store.getters.getPasswordPolicyMinLength;
},
- /* LANGUAGES */
- languages() {
- return Array(
- {
- label: t('settings', 'Common languages'),
- languages: this.settings.languages.commonlanguages
- },
- {
- label: t('settings', 'All languages'),
- languages: this.settings.languages.languages
- }
- );
- },
+ /* LANGUAGE */
userLanguage() {
let availableLanguages = this.languages[0].languages.concat(this.languages[1].languages);
let userLang = availableLanguages.find(lang => lang.code === this.user.language);