Skip to content

Commit 57770ae

Browse files
committed
Fix empty content of dashboard
Signed-off-by: Joas Schilling <[email protected]>
1 parent 5c6bcce commit 57770ae

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

js/activity-dashboard.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/activity-dashboard.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/views/Dashboard.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
2727
:show-more-text="t('activity', 'Activities')"
2828
:show-more-url="showMoreUrl"
2929
:loading="loading"
30-
:half-empty-content-message="t('activity', 'No activities')">
30+
empty-content-icon="icon-activity"
31+
:empty-content-message="t('activity', 'No activities')">
3132
<template #default="{ item }">
3233
<!-- {{item._activity}} -->
3334
<DashboardWidgetItem :id="item.activity_id"
@@ -96,7 +97,11 @@ export default {
9697
this.processActivities(activities)
9798
} catch (error) {
9899
this.loading = false
99-
console.error('Error loading the activity list', error)
100+
if (error?.response?.status === 304) {
101+
this.activities = []
102+
} else {
103+
console.error('Error loading the activity list', error)
104+
}
100105
}
101106
},
102107

0 commit comments

Comments
 (0)