change(ui): fixes
This commit is contained in:
parent
33084001c7
commit
dc256f76eb
2 changed files with 3 additions and 2 deletions
|
|
@ -82,7 +82,7 @@ function AddPredefinedMetric({ history, siteId, title, description }: IProps) {
|
|||
<Button variant="text-primary" className="font-medium ml-2" onClick={onCreateNew}>
|
||||
+ Create Custom Metric
|
||||
</Button>
|
||||
<div className="text-disabled-text">Showing the data from past 7 days.</div>
|
||||
<div className="text-disabled-text">Past 7 Days</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,8 @@ export default class Dashboard {
|
|||
this.description = json.description
|
||||
this.isPublic = json.isPublic
|
||||
this.createdAt = DateTime.fromMillis(new Date(json.createdAt).getTime())
|
||||
if (json.widgets) {
|
||||
const haveSmallWidgets = (json.widgets as any[]).includes((i: any) => i.config.col === 1)
|
||||
if (json.widgets && haveSmallWidgets) {
|
||||
// legacy
|
||||
const dashboardFix = '__openreplay__dashboard__fix' + json.dashboardId
|
||||
const isFixed = localStorage.getItem(dashboardFix)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue