mirror of
https://github.com/wekan/wekan.git
synced 2026-02-04 23:51:48 +01:00
Merge branch 'devel'
This commit is contained in:
commit
0ecbb73419
54 changed files with 165 additions and 42 deletions
21
CHANGELOG.md
21
CHANGELOG.md
|
|
@ -1,8 +1,22 @@
|
|||
# v0.95 2018-05-08 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [REST API Edit Card Labels](https://github.com/wekan/wekan/pull/1626);
|
||||
* [Add a new API route to create a new label in a given board](https://github.com/wekan/wekan/pull/1630);
|
||||
* [Admin Panel: Option to block username change](https://github.com/wekan/wekan/pull/1627).
|
||||
|
||||
and fixed the following bugs:
|
||||
|
||||
* [Error: title is required](https://github.com/wekan/wekan/issues/1576).
|
||||
|
||||
Thanks to GitHub users Shahar-Y, thiagofernando and ThisNeko for their contributions.
|
||||
|
||||
# v0.94 2018-05-03 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
* [REST API POST /cards: allow setting card members](https://github.com/wekan/wekan/commit/e576e0f9cfc4f61e54da8920a8e29fe43227c266).
|
||||
* [REST API POST /cards: allow setting card members](https://github.com/wekan/wekan/pull/1622).
|
||||
|
||||
Thanks to GitHub user couscous3 for contributions.
|
||||
|
||||
|
|
@ -44,8 +58,7 @@ Thanks to GitHub user xet7 for contributions.
|
|||
|
||||
This release fixes the following bugs:
|
||||
|
||||
- [Fix Wekan import / Export for
|
||||
ChecklistItems](https://github.com/wekan/wekan/commit/30b17ff6c92df07922f875071e864cf688902293).
|
||||
- [Fix Wekan import / Export for ChecklistItems](https://github.com/wekan/wekan/pull/1613).
|
||||
|
||||
Thanks to GitHub user zebby76 for contributions.
|
||||
|
||||
|
|
@ -85,7 +98,7 @@ This release fixes the following bugs:
|
|||
|
||||
- [Fix Switch List/swimlane view only working with admin privileges](https://github.com/wekan/wekan/issues/1567);
|
||||
- [Fix Wekan logo positioning](https://github.com/wekan/wekan/issues/1378);
|
||||
- [Fix checklists items migration error "title is required"](https://github.com/wekan/wekan/issues/1576);
|
||||
- [Tried to fix, but fix did not work: Fix checklists items migration error "title is required"](https://github.com/wekan/wekan/issues/1576);
|
||||
- [Removed paxctl alpine fix #1303 , because it did not work anymore, so Docker container
|
||||
did not build correctly](https://github.com/wekan/wekan/commit/ce659632174ba25ca9b5e85b053fde02fd9c3928);
|
||||
- [Use curl to download 100% CPU fibers fixed node in snap, and remove paxctl from
|
||||
|
|
|
|||
|
|
@ -94,13 +94,21 @@ template(name='email')
|
|||
|
||||
template(name='accountSettings')
|
||||
ul#account-setting.setting-detail
|
||||
li.smtp-form
|
||||
li.accounts-form
|
||||
.title {{_ 'accounts-allowEmailChange'}}
|
||||
.form-group.flex
|
||||
input.form-control#accounts-allowEmailChange(type="radio" name="allowEmailChange" value="true" checked="{{#if allowEmailChange}}checked{{/if}}")
|
||||
span {{_ 'yes'}}
|
||||
input.form-control#accounts-allowEmailChange(type="radio" name="allowEmailChange" value="false" checked="{{#unless allowEmailChange}}checked{{/unless}}")
|
||||
span {{_ 'no'}}
|
||||
li
|
||||
li.accounts-form
|
||||
.title {{_ 'accounts-allowUserNameChange'}}
|
||||
.form-group.flex
|
||||
input.form-control#accounts-allowUserNameChange(type="radio" name="allowUserNameChange" value="true" checked="{{#if allowUserNameChange}}checked{{/if}}")
|
||||
span {{_ 'yes'}}
|
||||
input.form-control#accounts-allowUserNameChange(type="radio" name="allowUserNameChange" value="false" checked="{{#unless allowUserNameChange}}checked{{/unless}}")
|
||||
span {{_ 'no'}}
|
||||
li
|
||||
button.js-accounts-save.primary {{_ 'save'}}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ Template.editProfilePopup.helpers({
|
|||
allowEmailChange() {
|
||||
return AccountSettings.findOne('accounts-allowEmailChange').booleanValue;
|
||||
},
|
||||
allowUserNameChange() {
|
||||
return AccountSettings.findOne('accounts-allowUserNameChange').booleanValue;
|
||||
},
|
||||
});
|
||||
|
||||
Template.editProfilePopup.events({
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "لا",
|
||||
"accounts": "الحسابات",
|
||||
"accounts-allowEmailChange": "السماح بتغيير البريد الإلكتروني",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Created at",
|
||||
"verified": "Verified",
|
||||
"active": "Active",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Не",
|
||||
"accounts": "Профили",
|
||||
"accounts-allowEmailChange": "Разреши промяна на имейла",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Създаден на",
|
||||
"verified": "Потвърден",
|
||||
"active": "Активен",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "No",
|
||||
"accounts": "Comptes",
|
||||
"accounts-allowEmailChange": "Permet modificar correu electrònic",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Creat ",
|
||||
"verified": "Verificat",
|
||||
"active": "Actiu",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Ne",
|
||||
"accounts": "Účty",
|
||||
"accounts-allowEmailChange": "Povolit změnu Emailu",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Vytvořeno v",
|
||||
"verified": "Ověřen",
|
||||
"active": "Aktivní",
|
||||
|
|
|
|||
|
|
@ -433,7 +433,8 @@
|
|||
"yes": "Ja",
|
||||
"no": "Nein",
|
||||
"accounts": "Konten",
|
||||
"accounts-allowEmailChange": "Ändern der E-Mailadresse zulassen",
|
||||
"accounts-allowEmailChange": "Ändern der E-Mailadresse erlauben",
|
||||
"accounts-allowUserNameChange": "Ändern des Benutzernamens erlauben",
|
||||
"createdAt": "Erstellt am",
|
||||
"verified": "Geprüft",
|
||||
"active": "Aktiv",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Όχι",
|
||||
"accounts": "Λογαριασμοί",
|
||||
"accounts-allowEmailChange": "Allow Email Change",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Created at",
|
||||
"verified": "Verified",
|
||||
"active": "Active",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "No",
|
||||
"accounts": "Cuentas",
|
||||
"accounts-allowEmailChange": "Permitir Cambio de Email",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Creado en",
|
||||
"verified": "Verificado",
|
||||
"active": "Activo",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "No",
|
||||
"accounts": "Cuentas",
|
||||
"accounts-allowEmailChange": "Permitir cambiar el correo electrónico",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Creado en",
|
||||
"verified": "Verificado",
|
||||
"active": "Activo",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Ez",
|
||||
"accounts": "Kontuak",
|
||||
"accounts-allowEmailChange": "Baimendu e-mail aldaketa",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Noiz sortua",
|
||||
"verified": "Egiaztatuta",
|
||||
"active": "Gaituta",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "خیر",
|
||||
"accounts": "حسابها",
|
||||
"accounts-allowEmailChange": "اجازه تغییر رایانامه",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "ساخته شده در",
|
||||
"verified": "معتبر",
|
||||
"active": "فعال",
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@
|
|||
"upload": "Lähetä",
|
||||
"upload-avatar": "Lähetä profiilikuva",
|
||||
"uploaded-avatar": "Profiilikuva lähetetty",
|
||||
"username": "Käyttäjänimi",
|
||||
"username": "Käyttäjätunnus",
|
||||
"view-it": "Näytä se",
|
||||
"warn-list-archived": "varoitus: tämä kortti on roskakorissa olevassa listassa",
|
||||
"watch": "Seuraa",
|
||||
|
|
@ -400,7 +400,7 @@
|
|||
"smtp-tls-description": "Ota käyttöön TLS tuki SMTP palvelimelle",
|
||||
"smtp-host": "SMTP isäntä",
|
||||
"smtp-port": "SMTP portti",
|
||||
"smtp-username": "Käyttäjänimi",
|
||||
"smtp-username": "Käyttäjätunnus",
|
||||
"smtp-password": "Salasana",
|
||||
"smtp-tls": "TLS tuki",
|
||||
"send-from": "Lähettäjä",
|
||||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Ei",
|
||||
"accounts": "Tilit",
|
||||
"accounts-allowEmailChange": "Salli sähköpostiosoitteen muuttaminen",
|
||||
"accounts-allowUserNameChange": "Salli käyttäjätunnuksen muuttaminen",
|
||||
"createdAt": "Luotu",
|
||||
"verified": "Varmistettu",
|
||||
"active": "Aktiivinen",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Non",
|
||||
"accounts": "Comptes",
|
||||
"accounts-allowEmailChange": "Autoriser le changement d'adresse mail",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Créé le",
|
||||
"verified": "Vérifié",
|
||||
"active": "Actif",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "לא",
|
||||
"accounts": "חשבונות",
|
||||
"accounts-allowEmailChange": "אפשר שינוי דוא\"ל",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "נוצר ב",
|
||||
"verified": "עבר אימות",
|
||||
"active": "פעיל",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Nem",
|
||||
"accounts": "Fiókok",
|
||||
"accounts-allowEmailChange": "E-mail megváltoztatásának engedélyezése",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Létrehozva",
|
||||
"verified": "Ellenőrizve",
|
||||
"active": "Aktív",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "No",
|
||||
"accounts": "Profili",
|
||||
"accounts-allowEmailChange": "Permetti modifica dell'email",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "creato alle",
|
||||
"verified": "Verificato",
|
||||
"active": "Attivo",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "いいえ",
|
||||
"accounts": "アカウント",
|
||||
"accounts-allowEmailChange": "メールアドレスの変更を許可",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Created at",
|
||||
"verified": "Verified",
|
||||
"active": "Active",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Nee",
|
||||
"accounts": "Accounts",
|
||||
"accounts-allowEmailChange": "Sta E-mailadres wijzigingen toe",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Gemaakt op",
|
||||
"verified": "Geverifieerd",
|
||||
"active": "Actief",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Nie",
|
||||
"accounts": "Konto",
|
||||
"accounts-allowEmailChange": "Zezwól na zmianę adresu email",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Stworzono o",
|
||||
"verified": "Zweryfikowane",
|
||||
"active": "Aktywny",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Não",
|
||||
"accounts": "Contas",
|
||||
"accounts-allowEmailChange": "Permitir Mudança de Email",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Criado em",
|
||||
"verified": "Verificado",
|
||||
"active": "Ativo",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Нет",
|
||||
"accounts": "Учетные записи",
|
||||
"accounts-allowEmailChange": "Разрешить изменение электронной почты",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Создано на",
|
||||
"verified": "Проверено",
|
||||
"active": "Действующий",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Nej",
|
||||
"accounts": "Konton",
|
||||
"accounts-allowEmailChange": "Tillåt e-poständring",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Skapad vid",
|
||||
"verified": "Verifierad",
|
||||
"active": "Aktiv",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "Hayır",
|
||||
"accounts": "Hesaplar",
|
||||
"accounts-allowEmailChange": "E-posta Değiştirmeye İzin Ver",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Oluşturulma tarihi",
|
||||
"verified": "Doğrulanmış",
|
||||
"active": "Aktif",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "否",
|
||||
"accounts": "账号",
|
||||
"accounts-allowEmailChange": "允许邮箱变更",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "创建于",
|
||||
"verified": "已验证",
|
||||
"active": "活跃",
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@
|
|||
"no": "否",
|
||||
"accounts": "帳號",
|
||||
"accounts-allowEmailChange": "准許變更電子信箱",
|
||||
"accounts-allowUserNameChange": "Allow Username Change",
|
||||
"createdAt": "Created at",
|
||||
"verified": "Verified",
|
||||
"active": "Active",
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -719,4 +719,33 @@ if (Meteor.isServer) {
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
JsonRoutes.add('PUT', '/api/boards/:id/labels', function (req, res) {
|
||||
Authentication.checkUserId(req.userId);
|
||||
const id = req.params.id;
|
||||
try {
|
||||
if (req.body.hasOwnProperty('label')) {
|
||||
const board = Boards.findOne({ _id: id });
|
||||
const color = req.body.label.color;
|
||||
const name = req.body.label.name;
|
||||
const labelId = Random.id(6);
|
||||
if (!board.getLabel(name, color)) {
|
||||
Boards.direct.update({ _id: id }, { $push: { labels: { _id: labelId, name, color } } });
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: labelId,
|
||||
});
|
||||
} else {
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
JsonRoutes.sendResult(res, {
|
||||
data: error,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -499,7 +499,7 @@ if (Meteor.isServer) {
|
|||
userId: req.body.authorId,
|
||||
swimlaneId: req.body.swimlaneId,
|
||||
sort: 0,
|
||||
members: members,
|
||||
members,
|
||||
});
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
|
|
@ -543,6 +543,11 @@ if (Meteor.isServer) {
|
|||
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
|
||||
{$set: {description: newDescription}});
|
||||
}
|
||||
if (req.body.hasOwnProperty('labelIds')) {
|
||||
const newlabelIds = req.body.labelIds;
|
||||
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
|
||||
{$set: {labelIds: newlabelIds}});
|
||||
}
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "wekan",
|
||||
"version": "0.94.0",
|
||||
"version": "0.95.0",
|
||||
"description": "The open-source Trello-like kanban",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
|
|||
appTitle = (defaultText = "Wekan"),
|
||||
# The name of the app as it is displayed to the user.
|
||||
|
||||
appVersion = 79,
|
||||
appVersion = 80,
|
||||
# Increment this for every release.
|
||||
|
||||
appMarketingVersion = (defaultText = "0.94.0~2018-05-03"),
|
||||
appMarketingVersion = (defaultText = "0.95.0~2018-05-08"),
|
||||
# Human-readable presentation of the app version.
|
||||
|
||||
minUpgradableAppVersion = 0,
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ Migrations.add('add-checklist-items', () => {
|
|||
// Create new items
|
||||
_.sortBy(checklist.items, 'sort').forEach((item, index) => {
|
||||
ChecklistItems.direct.insert({
|
||||
title: item.title,
|
||||
title: checklist.title,
|
||||
sort: index,
|
||||
isFinished: item.isFinished,
|
||||
checklistId: checklist._id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue