summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/components/settings/settingBody.js67
-rw-r--r--client/components/users/userHeader.jade5
-rw-r--r--client/components/users/userHeader.js3
-rw-r--r--i18n/ar.i18n.json3
-rw-r--r--i18n/bg.i18n.json3
-rw-r--r--i18n/br.i18n.json3
-rw-r--r--i18n/ca.i18n.json3
-rw-r--r--i18n/cs.i18n.json3
-rw-r--r--i18n/de.i18n.json3
-rw-r--r--i18n/el.i18n.json3
-rw-r--r--i18n/en-GB.i18n.json3
-rw-r--r--i18n/en.i18n.json1
-rw-r--r--i18n/eo.i18n.json3
-rw-r--r--i18n/es-AR.i18n.json3
-rw-r--r--i18n/es.i18n.json3
-rw-r--r--i18n/eu.i18n.json3
-rw-r--r--i18n/fa.i18n.json3
-rw-r--r--i18n/fi.i18n.json3
-rw-r--r--i18n/fr.i18n.json3
-rw-r--r--i18n/gl.i18n.json3
-rw-r--r--i18n/he.i18n.json3
-rw-r--r--i18n/hu.i18n.json3
-rw-r--r--i18n/hy.i18n.json3
-rw-r--r--i18n/id.i18n.json3
-rw-r--r--i18n/ig.i18n.json3
-rw-r--r--i18n/it.i18n.json3
-rw-r--r--i18n/ja.i18n.json3
-rw-r--r--i18n/ko.i18n.json3
-rw-r--r--i18n/lv.i18n.json3
-rw-r--r--i18n/mn.i18n.json3
-rw-r--r--i18n/nb.i18n.json3
-rw-r--r--i18n/nl.i18n.json3
-rw-r--r--i18n/pl.i18n.json3
-rw-r--r--i18n/pt-BR.i18n.json3
-rw-r--r--i18n/pt.i18n.json3
-rw-r--r--i18n/ro.i18n.json3
-rw-r--r--i18n/ru.i18n.json3
-rw-r--r--i18n/sr.i18n.json3
-rw-r--r--i18n/sv.i18n.json3
-rw-r--r--i18n/ta.i18n.json3
-rw-r--r--i18n/th.i18n.json3
-rw-r--r--i18n/tr.i18n.json3
-rw-r--r--i18n/uk.i18n.json3
-rw-r--r--i18n/vi.i18n.json3
-rw-r--r--i18n/zh-CN.i18n.json3
-rw-r--r--i18n/zh-TW.i18n.json3
-rw-r--r--models/accountSettings.js8
47 files changed, 139 insertions, 71 deletions
diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js
index 8c1ff1c7..7230d893 100644
--- a/client/components/settings/settingBody.js
+++ b/client/components/settings/settingBody.js
@@ -23,7 +23,7 @@ BlazeComponent.extendComponent({
checkField(selector) {
const value = $(selector).val();
- if(!value || value.trim() === ''){
+ if (!value || value.trim() === '') {
$(selector).parents('li.smtp-form').addClass('has-error');
throw Error('blank field');
} else {
@@ -31,7 +31,7 @@ BlazeComponent.extendComponent({
}
},
- currentSetting(){
+ currentSetting() {
return Settings.findOne();
},
@@ -44,23 +44,23 @@ BlazeComponent.extendComponent({
sort: ['title'],
});
},
- toggleRegistration(){
+ toggleRegistration() {
this.setLoading(true);
const registrationClosed = this.currentSetting().disableRegistration;
- Settings.update(Settings.findOne()._id, {$set:{disableRegistration: !registrationClosed}});
+ Settings.update(Settings.findOne()._id, {$set: {disableRegistration: !registrationClosed}});
this.setLoading(false);
- if(registrationClosed){
+ if (registrationClosed) {
$('.invite-people').slideUp();
- }else{
+ } else {
$('.invite-people').slideDown();
}
},
- toggleTLS(){
+ toggleTLS() {
$('#mail-server-tls').toggleClass('is-checked');
},
- switchMenu(event){
+ switchMenu(event) {
const target = $(event.target);
- if(!target.hasClass('active')){
+ if (!target.hasClass('active')) {
$('.side-menu li.active').removeClass('active');
target.parent().addClass('active');
const targetID = target.data('id');
@@ -71,9 +71,9 @@ BlazeComponent.extendComponent({
}
},
- checkBoard(event){
+ checkBoard(event) {
let target = $(event.target);
- if(!target.hasClass('js-toggle-board-choose')){
+ if (!target.hasClass('js-toggle-board-choose')) {
target = target.parent();
}
const checkboxId = target.attr('id');
@@ -81,7 +81,7 @@ BlazeComponent.extendComponent({
$(`#${checkboxId}`).toggleClass('is-checked');
},
- inviteThroughEmail(){
+ inviteThroughEmail() {
const emails = $('#email-to-invite').val().trim().split('\n').join(',').split(',');
const boardsToInvite = [];
$('.js-toggle-board-choose .materialCheckBox.is-checked').each(function () {
@@ -104,19 +104,23 @@ BlazeComponent.extendComponent({
}
},
- saveMailServerInfo(){
+ saveMailServerInfo() {
this.setLoading(true);
$('li').removeClass('has-error');
- try{
+ try {
const host = this.checkField('#mail-server-host');
const port = this.checkField('#mail-server-port');
const username = $('#mail-server-username').val().trim();
const password = $('#mail-server-password').val().trim();
const from = this.checkField('#mail-server-from');
const tls = $('#mail-server-tls.is-checked').length > 0;
- Settings.update(Settings.findOne()._id, {$set:{'mailServer.host':host, 'mailServer.port': port, 'mailServer.username': username,
- 'mailServer.password': password, 'mailServer.enableTLS': tls, 'mailServer.from': from}});
+ Settings.update(Settings.findOne()._id, {
+ $set: {
+ 'mailServer.host': host, 'mailServer.port': port, 'mailServer.username': username,
+ 'mailServer.password': password, 'mailServer.enableTLS': tls, 'mailServer.from': from,
+ },
+ });
} catch (e) {
return;
} finally {
@@ -136,11 +140,12 @@ BlazeComponent.extendComponent({
const message = `${TAPi18n.__(err.error)}\n${reason}`;
console.log(message, err);
alert(message);
- } /* eslint-enable no-console */
+ }
+ /* eslint-enable no-console */
});
},
- events(){
+ events() {
return [{
'click a.js-toggle-registration': this.toggleRegistration,
'click a.js-toggle-tls': this.toggleTLS,
@@ -154,20 +159,28 @@ BlazeComponent.extendComponent({
}).register('setting');
BlazeComponent.extendComponent({
- saveAllowEmailChange() {
+
+ saveAccountsChange() {
const allowEmailChange = ($('input[name=allowEmailChange]:checked').val() === 'true');
+ const allowUserNameChange = ($('input[name=allowUserNameChange]:checked').val() === 'true');
AccountSettings.update('accounts-allowEmailChange', {
- $set: { 'booleanValue': allowEmailChange },
+ $set: {'booleanValue': allowEmailChange},
+ });
+ AccountSettings.update('accounts-allowUserNameChange', {
+ $set: {'booleanValue': allowUserNameChange},
});
},
allowEmailChange() {
return AccountSettings.findOne('accounts-allowEmailChange').booleanValue;
},
+ allowUserNameChange() {
+ return AccountSettings.findOne('accounts-allowUserNameChange').booleanValue;
+ },
events() {
return [{
- 'click button.js-accounts-save': this.saveAllowEmailChange,
+ 'click button.js-accounts-save': this.saveAccountsChange,
}];
},
}).register('accountSettings');
@@ -181,27 +194,27 @@ BlazeComponent.extendComponent({
this.loading.set(w);
},
- currentSetting(){
+ currentSetting() {
return Announcements.findOne();
},
saveMessage() {
const message = $('#admin-announcement').val().trim();
Announcements.update(Announcements.findOne()._id, {
- $set: { 'body': message },
+ $set: {'body': message},
});
},
- toggleActive(){
+ toggleActive() {
this.setLoading(true);
const isActive = this.currentSetting().enabled;
Announcements.update(Announcements.findOne()._id, {
- $set:{ 'enabled': !isActive},
+ $set: {'enabled': !isActive},
});
this.setLoading(false);
- if(isActive){
+ if (isActive) {
$('.admin-announcement').slideUp();
- }else{
+ } else {
$('.admin-announcement').slideDown();
}
},
diff --git a/client/components/users/userHeader.jade b/client/components/users/userHeader.jade
index 4ac59f45..a8fdb143 100644
--- a/client/components/users/userHeader.jade
+++ b/client/components/users/userHeader.jade
@@ -33,7 +33,10 @@ template(name="editProfilePopup")
| {{_ 'username'}}
span.error.hide.username-taken
| {{_ 'error-username-taken'}}
- input.js-profile-username(type="text" value=username)
+ if allowUserNameChange
+ input.js-profile-username(type="text" value=username)
+ else
+ input.js-profile-username(type="text" value=username readonly)
label
| {{_ 'initials'}}
input.js-profile-initials(type="text" value=profile.initials)
diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js
index be7d4dcb..d96a9b3d 100644
--- a/client/components/users/userHeader.js
+++ b/client/components/users/userHeader.js
@@ -24,6 +24,9 @@ Template.editProfilePopup.helpers({
allowEmailChange() {
return AccountSettings.findOne('accounts-allowEmailChange').booleanValue;
},
+ allowUserNameChange() {
+ return AccountSettings.findOne('accounts-allowUserNameChange').booleanValue;
+ },
});
Template.editProfilePopup.events({
diff --git a/i18n/ar.i18n.json b/i18n/ar.i18n.json
index c91f0225..1de6d7bf 100644
--- a/i18n/ar.i18n.json
+++ b/i18n/ar.i18n.json
@@ -434,6 +434,7 @@
"no": "لا",
"accounts": "الحسابات",
"accounts-allowEmailChange": "السماح بتغيير البريد الإلكتروني",
+ "accounts-allowUserNameChange": "اسمح بتغيير اسم المستخدم",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/bg.i18n.json b/i18n/bg.i18n.json
index e1c76a3d..b5085b95 100644
--- a/i18n/bg.i18n.json
+++ b/i18n/bg.i18n.json
@@ -434,6 +434,7 @@
"no": "Не",
"accounts": "Профили",
"accounts-allowEmailChange": "Разреши промяна на имейла",
+ "accounts-allowUserNameChange": "Разрешаване на Промяна на Потребителско име",
"createdAt": "Създаден на",
"verified": "Потвърден",
"active": "Активен",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/br.i18n.json b/i18n/br.i18n.json
index 26367e66..6b88df86 100644
--- a/i18n/br.i18n.json
+++ b/i18n/br.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/ca.i18n.json b/i18n/ca.i18n.json
index cea7aa35..c4affb6f 100644
--- a/i18n/ca.i18n.json
+++ b/i18n/ca.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Comptes",
"accounts-allowEmailChange": "Permet modificar correu electrònic",
+ "accounts-allowUserNameChange": "Permet canviar el nom d'usuari",
"createdAt": "Creat ",
"verified": "Verificat",
"active": "Actiu",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/cs.i18n.json b/i18n/cs.i18n.json
index 926c44f5..f991ae6f 100644
--- a/i18n/cs.i18n.json
+++ b/i18n/cs.i18n.json
@@ -434,6 +434,7 @@
"no": "Ne",
"accounts": "Účty",
"accounts-allowEmailChange": "Povolit změnu Emailu",
+ "accounts-allowUserNameChange": "Povolit změnu jména uživatele",
"createdAt": "Vytvořeno v",
"verified": "Ověřen",
"active": "Aktivní",
@@ -443,4 +444,4 @@
"card-end-on": "Končí v",
"editCardReceivedDatePopup-title": "Změnit datum přijetí",
"editCardEndDatePopup-title": "Změnit datum konce"
-} \ No newline at end of file
+}
diff --git a/i18n/de.i18n.json b/i18n/de.i18n.json
index c27ba255..35814806 100644
--- a/i18n/de.i18n.json
+++ b/i18n/de.i18n.json
@@ -434,6 +434,7 @@
"no": "Nein",
"accounts": "Konten",
"accounts-allowEmailChange": "Ändern der E-Mailadresse zulassen",
+ "accounts-allowUserNameChange": "Erlaube Benutzernamen ändern",
"createdAt": "Erstellt am",
"verified": "Geprüft",
"active": "Aktiv",
@@ -443,4 +444,4 @@
"card-end-on": "Endet am",
"editCardReceivedDatePopup-title": "Empfangsdatum ändern",
"editCardEndDatePopup-title": "Enddatum ändern"
-} \ No newline at end of file
+}
diff --git a/i18n/el.i18n.json b/i18n/el.i18n.json
index ae1d7317..2edab03b 100644
--- a/i18n/el.i18n.json
+++ b/i18n/el.i18n.json
@@ -434,6 +434,7 @@
"no": "Όχι",
"accounts": "Λογαριασμοί",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/en-GB.i18n.json b/i18n/en-GB.i18n.json
index 4a4b96da..d7cc7d11 100644
--- a/i18n/en-GB.i18n.json
+++ b/i18n/en-GB.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json
index 1f46dce6..6e7d5526 100644
--- a/i18n/en.i18n.json
+++ b/i18n/en.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
diff --git a/i18n/eo.i18n.json b/i18n/eo.i18n.json
index 09c4ddb2..e649ae59 100644
--- a/i18n/eo.i18n.json
+++ b/i18n/eo.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/es-AR.i18n.json b/i18n/es-AR.i18n.json
index e9a7d38c..f83ccec5 100644
--- a/i18n/es-AR.i18n.json
+++ b/i18n/es-AR.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Cuentas",
"accounts-allowEmailChange": "Permitir Cambio de Email",
+ "accounts-allowUserNameChange": "Permitir Cambio de Username",
"createdAt": "Creado en",
"verified": "Verificado",
"active": "Activo",
@@ -443,4 +444,4 @@
"card-end-on": "Termina en",
"editCardReceivedDatePopup-title": "Cambiar fecha de recepción",
"editCardEndDatePopup-title": "Cambiar fecha de término"
-} \ No newline at end of file
+}
diff --git a/i18n/es.i18n.json b/i18n/es.i18n.json
index c1d9fa3c..3d0b3ae7 100644
--- a/i18n/es.i18n.json
+++ b/i18n/es.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Cuentas",
"accounts-allowEmailChange": "Permitir cambiar el correo electrónico",
+ "accounts-allowUserNameChange": "Permitir Cambio de Username",
"createdAt": "Creado en",
"verified": "Verificado",
"active": "Activo",
@@ -443,4 +444,4 @@
"card-end-on": "Finalizado el",
"editCardReceivedDatePopup-title": "Cambiar la fecha de recepción",
"editCardEndDatePopup-title": "Cambiar la fecha de finalización"
-} \ No newline at end of file
+}
diff --git a/i18n/eu.i18n.json b/i18n/eu.i18n.json
index c57233a4..965cfd85 100644
--- a/i18n/eu.i18n.json
+++ b/i18n/eu.i18n.json
@@ -434,6 +434,7 @@
"no": "Ez",
"accounts": "Kontuak",
"accounts-allowEmailChange": "Baimendu e-mail aldaketa",
+ "accounts-allowUserNameChange": "Baimendu erabiltzaile-izena aldatzea",
"createdAt": "Noiz sortua",
"verified": "Egiaztatuta",
"active": "Gaituta",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/fa.i18n.json b/i18n/fa.i18n.json
index cb963369..197bd364 100644
--- a/i18n/fa.i18n.json
+++ b/i18n/fa.i18n.json
@@ -434,6 +434,7 @@
"no": "خیر",
"accounts": "حساب‌ها",
"accounts-allowEmailChange": "اجازه تغییر رایانامه",
+ "accounts-allowUserNameChange": "اجازه تغییر ایمیل",
"createdAt": "ساخته شده در",
"verified": "معتبر",
"active": "فعال",
@@ -443,4 +444,4 @@
"card-end-on": "پایان در",
"editCardReceivedDatePopup-title": "تغییر تاریخ رسید",
"editCardEndDatePopup-title": "تغییر تاریخ پایان"
-} \ No newline at end of file
+}
diff --git a/i18n/fi.i18n.json b/i18n/fi.i18n.json
index 35e98eeb..1f4fbbf8 100644
--- a/i18n/fi.i18n.json
+++ b/i18n/fi.i18n.json
@@ -434,6 +434,7 @@
"no": "Ei",
"accounts": "Tilit",
"accounts-allowEmailChange": "Salli sähköpostiosoitteen muuttaminen",
+ "accounts-allowUserNameChange": "Salli käyttäjänimesi muutos",
"createdAt": "Luotu",
"verified": "Varmistettu",
"active": "Aktiivinen",
@@ -443,4 +444,4 @@
"card-end-on": "Loppuu",
"editCardReceivedDatePopup-title": "Vaihda vastaanottamispäivää",
"editCardEndDatePopup-title": "Vaihda loppumispäivää"
-} \ No newline at end of file
+}
diff --git a/i18n/fr.i18n.json b/i18n/fr.i18n.json
index bc51682b..fd1ebf8b 100644
--- a/i18n/fr.i18n.json
+++ b/i18n/fr.i18n.json
@@ -434,6 +434,7 @@
"no": "Non",
"accounts": "Comptes",
"accounts-allowEmailChange": "Autoriser le changement d'adresse mail",
+ "accounts-allowUserNameChange": "Autoriser le changement de nom d'utilisateur",
"createdAt": "Créé le",
"verified": "Vérifié",
"active": "Actif",
@@ -443,4 +444,4 @@
"card-end-on": "Se termine le",
"editCardReceivedDatePopup-title": "Changer la date de réception",
"editCardEndDatePopup-title": "Changer la date de fin"
-} \ No newline at end of file
+}
diff --git a/i18n/gl.i18n.json b/i18n/gl.i18n.json
index 4539656e..5150f84a 100644
--- a/i18n/gl.i18n.json
+++ b/i18n/gl.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/he.i18n.json b/i18n/he.i18n.json
index a2ca8e9d..d90c1190 100644
--- a/i18n/he.i18n.json
+++ b/i18n/he.i18n.json
@@ -434,6 +434,7 @@
"no": "לא",
"accounts": "חשבונות",
"accounts-allowEmailChange": "אפשר שינוי דוא\"ל",
+ "accounts-allowUserNameChange": "אפשר שינוי שם משתמש",
"createdAt": "נוצר ב",
"verified": "עבר אימות",
"active": "פעיל",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/hu.i18n.json b/i18n/hu.i18n.json
index eeb7b24a..3239672b 100644
--- a/i18n/hu.i18n.json
+++ b/i18n/hu.i18n.json
@@ -434,6 +434,7 @@
"no": "Nem",
"accounts": "Fiókok",
"accounts-allowEmailChange": "E-mail megváltoztatásának engedélyezése",
+ "accounts-allowUserNameChange": "A Felhasználónév módosításának engedélyezése",
"createdAt": "Létrehozva",
"verified": "Ellenőrizve",
"active": "Aktív",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/hy.i18n.json b/i18n/hy.i18n.json
index afc4cfa8..65b36c01 100644
--- a/i18n/hy.i18n.json
+++ b/i18n/hy.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/id.i18n.json b/i18n/id.i18n.json
index f9fbb1b0..9e49ec51 100644
--- a/i18n/id.i18n.json
+++ b/i18n/id.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/ig.i18n.json b/i18n/ig.i18n.json
index 360eb6bb..0aa2d841 100644
--- a/i18n/ig.i18n.json
+++ b/i18n/ig.i18n.json
@@ -434,6 +434,7 @@
"no": "Mba",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Ekere na",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/it.i18n.json b/i18n/it.i18n.json
index 2908c287..a3b4b3a2 100644
--- a/i18n/it.i18n.json
+++ b/i18n/it.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Profili",
"accounts-allowEmailChange": "Permetti modifica dell'email",
+ "accounts-allowUserNameChange": "Consenti modifica nome utente",
"createdAt": "creato alle",
"verified": "Verificato",
"active": "Attivo",
@@ -443,4 +444,4 @@
"card-end-on": "Termina il",
"editCardReceivedDatePopup-title": "Cambia data ricezione",
"editCardEndDatePopup-title": "Cambia data finale"
-} \ No newline at end of file
+}
diff --git a/i18n/ja.i18n.json b/i18n/ja.i18n.json
index 59b7b02a..3546df07 100644
--- a/i18n/ja.i18n.json
+++ b/i18n/ja.i18n.json
@@ -434,6 +434,7 @@
"no": "いいえ",
"accounts": "アカウント",
"accounts-allowEmailChange": "メールアドレスの変更を許可",
+ "accounts-allowUserNameChange": "ユーザー名変更を許可する",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/ko.i18n.json b/i18n/ko.i18n.json
index 1eb8f47e..a52700fb 100644
--- a/i18n/ko.i18n.json
+++ b/i18n/ko.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/lv.i18n.json b/i18n/lv.i18n.json
index 29a4f808..b9fe91e3 100644
--- a/i18n/lv.i18n.json
+++ b/i18n/lv.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/mn.i18n.json b/i18n/mn.i18n.json
index 208b4b9c..a7d7ff63 100644
--- a/i18n/mn.i18n.json
+++ b/i18n/mn.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/nb.i18n.json b/i18n/nb.i18n.json
index 4cb55831..3663c140 100644
--- a/i18n/nb.i18n.json
+++ b/i18n/nb.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/nl.i18n.json b/i18n/nl.i18n.json
index 2896d5b1..7c36193b 100644
--- a/i18n/nl.i18n.json
+++ b/i18n/nl.i18n.json
@@ -434,6 +434,7 @@
"no": "Nee",
"accounts": "Accounts",
"accounts-allowEmailChange": "Sta E-mailadres wijzigingen toe",
+ "accounts-allowUserNameChange": "Gebruikersnaam wijzigen toestaan",
"createdAt": "Gemaakt op",
"verified": "Geverifieerd",
"active": "Actief",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/pl.i18n.json b/i18n/pl.i18n.json
index d1a91b2d..2b7b9e65 100644
--- a/i18n/pl.i18n.json
+++ b/i18n/pl.i18n.json
@@ -434,6 +434,7 @@
"no": "Nie",
"accounts": "Konto",
"accounts-allowEmailChange": "Zezwól na zmianę adresu email",
+ "accounts-allowUserNameChange": "Zezwalaj na zmianę użytkownika",
"createdAt": "Stworzono o",
"verified": "Zweryfikowane",
"active": "Aktywny",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/pt-BR.i18n.json b/i18n/pt-BR.i18n.json
index 976379f5..97e9cca4 100644
--- a/i18n/pt-BR.i18n.json
+++ b/i18n/pt-BR.i18n.json
@@ -434,6 +434,7 @@
"no": "Não",
"accounts": "Contas",
"accounts-allowEmailChange": "Permitir Mudança de Email",
+ "accounts-allowUserNameChange": "Permitir Mudança de Username",
"createdAt": "Criado em",
"verified": "Verificado",
"active": "Ativo",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/pt.i18n.json b/i18n/pt.i18n.json
index a5cbb475..b33da0fc 100644
--- a/i18n/pt.i18n.json
+++ b/i18n/pt.i18n.json
@@ -434,6 +434,7 @@
"no": "Não",
"accounts": "Contas",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verificado",
"active": "Ativo",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/ro.i18n.json b/i18n/ro.i18n.json
index 916524a1..db39d531 100644
--- a/i18n/ro.i18n.json
+++ b/i18n/ro.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/ru.i18n.json b/i18n/ru.i18n.json
index 1fbadbb7..6c3d5f6c 100644
--- a/i18n/ru.i18n.json
+++ b/i18n/ru.i18n.json
@@ -434,6 +434,7 @@
"no": "Нет",
"accounts": "Учетные записи",
"accounts-allowEmailChange": "Разрешить изменение электронной почты",
+ "accounts-allowUserNameChange": "Разрешить изменение имени пользователя",
"createdAt": "Создано на",
"verified": "Проверено",
"active": "Действующий",
@@ -443,4 +444,4 @@
"card-end-on": "Завершится до",
"editCardReceivedDatePopup-title": "Изменить дату получения",
"editCardEndDatePopup-title": "Изменить дату завершения"
-} \ No newline at end of file
+}
diff --git a/i18n/sr.i18n.json b/i18n/sr.i18n.json
index 22cad5ec..362bccd6 100644
--- a/i18n/sr.i18n.json
+++ b/i18n/sr.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/sv.i18n.json b/i18n/sv.i18n.json
index 4ad85e22..68f5e453 100644
--- a/i18n/sv.i18n.json
+++ b/i18n/sv.i18n.json
@@ -434,6 +434,7 @@
"no": "Nej",
"accounts": "Konton",
"accounts-allowEmailChange": "Tillåt e-poständring",
+ "accounts-allowUserNameChange": "Tillåt användarnamnändring",
"createdAt": "Skapad vid",
"verified": "Verifierad",
"active": "Aktiv",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Ändra mottagningsdatum",
"editCardEndDatePopup-title": "Ändra slutdatum"
-} \ No newline at end of file
+}
diff --git a/i18n/ta.i18n.json b/i18n/ta.i18n.json
index ab7c9880..6e7d5526 100644
--- a/i18n/ta.i18n.json
+++ b/i18n/ta.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/th.i18n.json b/i18n/th.i18n.json
index 1118c6db..bd151cd5 100644
--- a/i18n/th.i18n.json
+++ b/i18n/th.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/tr.i18n.json b/i18n/tr.i18n.json
index 2389e1c7..979586d4 100644
--- a/i18n/tr.i18n.json
+++ b/i18n/tr.i18n.json
@@ -434,6 +434,7 @@
"no": "Hayır",
"accounts": "Hesaplar",
"accounts-allowEmailChange": "E-posta Değiştirmeye İzin Ver",
+ "accounts-allowUserNameChange": "Kullanıcı Adının Değiştirilmesine İzin Ver",
"createdAt": "Oluşturulma tarihi",
"verified": "Doğrulanmış",
"active": "Aktif",
@@ -443,4 +444,4 @@
"card-end-on": "Bitiş zamanı",
"editCardReceivedDatePopup-title": "Giriş tarihini değiştir",
"editCardEndDatePopup-title": "Bitiş tarihini değiştir"
-} \ No newline at end of file
+}
diff --git a/i18n/uk.i18n.json b/i18n/uk.i18n.json
index a3266b8d..c197216b 100644
--- a/i18n/uk.i18n.json
+++ b/i18n/uk.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/vi.i18n.json b/i18n/vi.i18n.json
index eb8bada9..277a6103 100644
--- a/i18n/vi.i18n.json
+++ b/i18n/vi.i18n.json
@@ -434,6 +434,7 @@
"no": "No",
"accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change",
+ "accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/i18n/zh-CN.i18n.json b/i18n/zh-CN.i18n.json
index 059ccf39..e6ca85de 100644
--- a/i18n/zh-CN.i18n.json
+++ b/i18n/zh-CN.i18n.json
@@ -434,6 +434,7 @@
"no": "否",
"accounts": "账号",
"accounts-allowEmailChange": "允许邮箱变更",
+ "accounts-allowUserNameChange": "允许用户名更改",
"createdAt": "创建于",
"verified": "已验证",
"active": "活跃",
@@ -443,4 +444,4 @@
"card-end-on": "终止于",
"editCardReceivedDatePopup-title": "修改接收日期",
"editCardEndDatePopup-title": "修改终止日期"
-} \ No newline at end of file
+}
diff --git a/i18n/zh-TW.i18n.json b/i18n/zh-TW.i18n.json
index 251d6344..721702ad 100644
--- a/i18n/zh-TW.i18n.json
+++ b/i18n/zh-TW.i18n.json
@@ -434,6 +434,7 @@
"no": "否",
"accounts": "帳號",
"accounts-allowEmailChange": "准許變更電子信箱",
+ "accounts-allowUserNameChange": "允许用户名更改",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active",
@@ -443,4 +444,4 @@
"card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date"
-} \ No newline at end of file
+}
diff --git a/models/accountSettings.js b/models/accountSettings.js
index db4087c0..6dfbac5d 100644
--- a/models/accountSettings.js
+++ b/models/accountSettings.js
@@ -23,11 +23,17 @@ AccountSettings.allow({
if (Meteor.isServer) {
Meteor.startup(() => {
- AccountSettings.upsert({ _id: 'accounts-allowEmailChange' }, {
+ AccountSettings.upsert({_id: 'accounts-allowEmailChange'}, {
$setOnInsert: {
booleanValue: false,
sort: 0,
},
});
+ AccountSettings.upsert({_id: 'accounts-allowUserNameChange'}, {
+ $setOnInsert: {
+ booleanValue: false,
+ sort: 1,
+ },
+ });
});
}