Commit 96ea697b authored by Clement Ho's avatar Clement Ho

[skip ci] fix eslint

parent 83965105
......@@ -89,8 +89,10 @@ export default {
return `@${user.username}`;
},
shouldRenderCollapsedAssignee(index) {
return index === 0 || this.users.length <= 2 && index <= 2
}
const firstTwo = this.users.length <= 2 && index <= 2;
return index === 0 || firstTwo;
},
},
template: `
<div>
......
......@@ -49,6 +49,8 @@ export default {
} else if (this.showNoTimeTrackingState) {
return 'no-tracking';
}
return '';
},
spanClass() {
if (this.showComparisonState) {
......@@ -58,6 +60,8 @@ export default {
} else if (this.showNoTimeTrackingState) {
return 'no-value';
}
return '';
},
text() {
if (this.showComparisonState) {
......@@ -69,7 +73,9 @@ export default {
} else if (this.showNoTimeTrackingState) {
return 'None';
}
}
return '';
},
},
methods: {
abbreviateTime(timeStr) {
......
......@@ -44,8 +44,6 @@ export default class SidebarMediator {
this.store.processUserData(data);
this.store.processTimeTrackingData(data);
})
.catch(() => {
return new Flash('Error occured when fetching sidebar data');
});
.catch(() => new Flash('Error occured when fetching sidebar data'));
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment