Commit b7115810 authored by Clement Ho's avatar Clement Ho

Merge branch 'multiple-assignees-fe-sidebar' into multiple-assignees-issue-board-sidebar

parents 119c1c91 22af8970
...@@ -89,8 +89,10 @@ export default { ...@@ -89,8 +89,10 @@ export default {
return `@${user.username}`; return `@${user.username}`;
}, },
shouldRenderCollapsedAssignee(index) { shouldRenderCollapsedAssignee(index) {
return index === 0 || this.users.length <= 2 && index <= 2 const firstTwo = this.users.length <= 2 && index <= 2;
}
return index === 0 || firstTwo;
},
}, },
template: ` template: `
<div> <div>
......
...@@ -49,6 +49,8 @@ export default { ...@@ -49,6 +49,8 @@ export default {
} else if (this.showNoTimeTrackingState) { } else if (this.showNoTimeTrackingState) {
return 'no-tracking'; return 'no-tracking';
} }
return '';
}, },
spanClass() { spanClass() {
if (this.showComparisonState) { if (this.showComparisonState) {
...@@ -58,6 +60,8 @@ export default { ...@@ -58,6 +60,8 @@ export default {
} else if (this.showNoTimeTrackingState) { } else if (this.showNoTimeTrackingState) {
return 'no-value'; return 'no-value';
} }
return '';
}, },
text() { text() {
if (this.showComparisonState) { if (this.showComparisonState) {
...@@ -69,7 +73,9 @@ export default { ...@@ -69,7 +73,9 @@ export default {
} else if (this.showNoTimeTrackingState) { } else if (this.showNoTimeTrackingState) {
return 'None'; return 'None';
} }
}
return '';
},
}, },
methods: { methods: {
abbreviateTime(timeStr) { abbreviateTime(timeStr) {
......
...@@ -44,8 +44,6 @@ export default class SidebarMediator { ...@@ -44,8 +44,6 @@ export default class SidebarMediator {
this.store.processUserData(data); this.store.processUserData(data);
this.store.processTimeTrackingData(data); this.store.processTimeTrackingData(data);
}) })
.catch(() => { .catch(() => new Flash('Error occured when fetching sidebar data'));
return new Flash('Error occured when fetching sidebar data');
});
} }
} }
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
} }
}, },
clicked: function(options) { clicked: function(options) {
const { $el, e } = options; const e = options.e;
let selected = options.selectedObj; let selected = options.selectedObj;
if ($(dropdown).is(".js-filter-submit")) { if ($(dropdown).is(".js-filter-submit")) {
......
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