mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 05:27:14 -04:00
- Fix lint errors.
Thanks to xet7 !
This commit is contained in:
parent
2b53fae16f
commit
f5339ef97f
4 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
const rulesMainComponent = BlazeComponent.extendComponent({
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.rulesCurrentTab = new ReactiveVar('rulesList');
|
||||
this.ruleName = new ReactiveVar('');
|
||||
|
@ -11,7 +11,7 @@ const rulesMainComponent = BlazeComponent.extendComponent({
|
|||
},
|
||||
sanitizeObject(obj){
|
||||
Object.keys(obj).forEach((key) => {
|
||||
if(obj[key] == '' || obj[key] == undefined){
|
||||
if(obj[key] === '' || obj[key] === undefined){
|
||||
obj[key] = '*';
|
||||
}}
|
||||
);
|
||||
|
@ -52,9 +52,9 @@ const rulesMainComponent = BlazeComponent.extendComponent({
|
|||
const username = $(event.currentTarget.offsetParent).find('.user-name').val();
|
||||
let trigger = this.triggerVar.get();
|
||||
trigger.userId = '*';
|
||||
if(username != undefined ){
|
||||
if(username !== undefined ){
|
||||
const userFound = Users.findOne({username});
|
||||
if(userFound != undefined){
|
||||
if(userFound !== undefined){
|
||||
trigger.userId = userFound._id;
|
||||
this.triggerVar.set(trigger);
|
||||
}
|
||||
|
|
|
@ -13,8 +13,8 @@ BlazeComponent.extendComponent({
|
|||
'click .js-open-card-title-popup'(event){
|
||||
const funct = Popup.open('boardCardTitle');
|
||||
const divId = $(event.currentTarget.parentNode.parentNode).attr('id');
|
||||
console.log('current popup');
|
||||
console.log(this.currentPopupTriggerId);
|
||||
//console.log('current popup');
|
||||
//console.log(this.currentPopupTriggerId);
|
||||
this.currentPopupTriggerId = divId;
|
||||
funct.call(this, event);
|
||||
},
|
||||
|
|
|
@ -220,7 +220,7 @@ Utils = {
|
|||
finalString += element.text().toLowerCase();
|
||||
} else if (element.hasClass('user-details')) {
|
||||
let username = element.find('input').val();
|
||||
if(username == undefined || username == ''){
|
||||
if(username === undefined || username === ''){
|
||||
username = '*';
|
||||
}
|
||||
finalString += `${element.find('.trigger-text').text().toLowerCase() } ${ username}`;
|
||||
|
@ -228,7 +228,7 @@ Utils = {
|
|||
finalString += element.find('select option:selected').text().toLowerCase();
|
||||
} else if (element.find('input').length > 0) {
|
||||
let inputvalue = element.find('input').val();
|
||||
if(inputvalue == undefined || inputvalue == ''){
|
||||
if(inputvalue === undefined || inputvalue === ''){
|
||||
inputvalue = '*';
|
||||
}
|
||||
finalString += inputvalue;
|
||||
|
|
|
@ -150,12 +150,12 @@ RulesHelper = {
|
|||
let listId = '';
|
||||
let swimlaneId = '';
|
||||
const swimlane = Swimlanes.findOne({title:action.swimlaneName, boardId});
|
||||
if(list == undefined){
|
||||
if(list === undefined){
|
||||
listId = '';
|
||||
}else{
|
||||
listId = list._id;
|
||||
}
|
||||
if(swimlane == undefined){
|
||||
if(swimlane === undefined){
|
||||
swimlaneId = Swimlanes.findOne({title:'Default', boardId})._id;
|
||||
}else{
|
||||
swimlaneId = swimlane._id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue