mirror of
https://github.com/wekan/wekan.git
synced 2026-03-06 05:40:16 +01:00
Merge branch 'edge' into edge
This commit is contained in:
commit
50edffee47
67 changed files with 543 additions and 247 deletions
|
|
@ -7,7 +7,7 @@ const i18nTagToT9n = (i18nTag) => {
|
|||
};
|
||||
|
||||
const validator = {
|
||||
set: function(obj, prop, value) {
|
||||
set(obj, prop, value) {
|
||||
if (prop === 'state' && value !== 'signIn') {
|
||||
$('.at-form-authentication').hide();
|
||||
} else if (prop === 'state' && value === 'signIn') {
|
||||
|
|
@ -17,7 +17,7 @@ const validator = {
|
|||
obj[prop] = value;
|
||||
// Indicate success
|
||||
return true;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Template.userFormsLayout.onRendered(() => {
|
||||
|
|
@ -82,7 +82,7 @@ Template.userFormsLayout.events({
|
|||
});
|
||||
},
|
||||
'click #at-btn'(event) {
|
||||
/* All authentication method can be managed/called here.
|
||||
/* All authentication method can be managed/called here.
|
||||
!! DON'T FORGET to correctly fill the fields of the user during its creation if necessary authenticationMethod : String !!
|
||||
*/
|
||||
const authenticationMethodSelected = $('.select-authentication').val();
|
||||
|
|
|
|||
|
|
@ -17,6 +17,4 @@ template(name="ruleDetails")
|
|||
div.rules-back
|
||||
button.js-goback
|
||||
i.fa.fa-chevron-left
|
||||
| {{{_ 'r-back'}}}
|
||||
|
||||
|
||||
| {{{_ 'back'}}}
|
||||
|
|
|
|||
|
|
@ -26,4 +26,4 @@ template(name="rulesActions")
|
|||
div.rules-back
|
||||
button.js-goback
|
||||
i.fa.fa-chevron-left
|
||||
| {{{_ 'r-back'}}}
|
||||
| {{{_ 'back'}}}
|
||||
|
|
|
|||
|
|
@ -22,4 +22,4 @@ template(name="rulesTriggers")
|
|||
div.rules-back
|
||||
button.js-goback
|
||||
i.fa.fa-chevron-left
|
||||
| {{{_ 'r-back'}}}
|
||||
| {{{_ 'back'}}}
|
||||
|
|
|
|||
|
|
@ -31,4 +31,4 @@ Template.connectionMethod.helpers({
|
|||
authentications() {
|
||||
return Template.instance().authenticationMethods.get();
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -67,12 +67,12 @@ Template.editUserPopup.onCreated(function() {
|
|||
|
||||
Meteor.call('getAuthenticationsEnabled', (_, result) => {
|
||||
if (result) {
|
||||
// TODO : add a management of different languages
|
||||
// TODO : add a management of different languages
|
||||
// (ex {value: ldap, text: TAPi18n.__('ldap', {}, T9n.getLanguage() || 'en')})
|
||||
this.authenticationMethods.set([
|
||||
{value: 'password'},
|
||||
// Gets only the authentication methods availables
|
||||
...Object.entries(result).filter(e => e[1]).map(e => ({value: e[0]})),
|
||||
...Object.entries(result).filter((e) => e[1]).map((e) => ({value: e[0]})),
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
|
@ -94,7 +94,7 @@ Template.editUserPopup.helpers({
|
|||
const userId = Template.instance().data.userId;
|
||||
const selected = Users.findOne(userId).authenticationMethod;
|
||||
return selected === 'ldap';
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
|
|
@ -131,7 +131,7 @@ Template.editUserPopup.events({
|
|||
'profile.fullname': fullname,
|
||||
'isAdmin': isAdmin === 'true',
|
||||
'loginDisabled': isActive === 'true',
|
||||
'authenticationMethod': authentication
|
||||
'authenticationMethod': authentication,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
border-bottom: 1px solid #CCC
|
||||
|
||||
.swimlane-header
|
||||
-ms-writing-mode: tb-rl;
|
||||
writing-mode: vertical-rl;
|
||||
transform: rotate(180deg);
|
||||
font-size: 14px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue