-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Public Dashboard Page to React #4203
Conversation
return this.queryResult.toPromise() | ||
.then((result) => { | ||
this.loading = false; | ||
this.data = result; | ||
return result; | ||
}) | ||
.catch((error) => { | ||
this.loading = false; | ||
this.data = error; | ||
return error; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f83b492
to
bce0d97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.dashboard = new Dashboard(data); | ||
this.dashboard.widgets = Dashboard.prepareDashboardWidgets(this.dashboard.widgets); | ||
this.dashboard.widgets.forEach(widget => this.loadWidget(widget, !!refreshRate)); | ||
this.filters = []; // TODO: implement (@/services/dashboard.js:collectDashboardFilters) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added the Dashboard filters in this PR 👍
Closing this to deliver with #4228 |
What type of PR is this? (check all applicable)
Description
Migration of the Public Dashboard Page to React
To-do list:
Issues to verify in this PR:
Related Tickets & Documents
--
Mobile & Desktop Screenshots/Recordings (if there are UI changes)