Commit 02ccb5a8 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Refactoring the popup UI

parent 4d8ec4560164
......@@ -78,8 +78,8 @@ export class CurrentTabViews extends React.Component<CurrentTabViewsProps, {}> {
}
)}
<hr />
{Object.keys(this.props.registry.descriptors).map(
(viewId: string, index: number) => {
{Object.keys(this.props.registry.descriptors)
.map((viewId: string, index: number) => {
if (
this.props.data.rendering.evaluations.find(
(value: application.RenderingEvaluation) =>
......@@ -88,20 +88,22 @@ export class CurrentTabViews extends React.Component<CurrentTabViewsProps, {}> {
)
return null;
let view = this.props.registry.descriptors[viewId];
<div key={"view-" + index} className="row">
<div className="col-12">
<span
title="Priority for this view"
className="badge badge-secondary"
style={{ marginRight: "5pt" }}
>
{"disabled"}
</span>
<span>{view.name}</span>
return (
<div key={"view-" + index} className="row">
<div className="col-12">
<span
title="Priority for this view"
className="badge badge-secondary"
style={{ marginRight: "5pt" }}
>
{"disabled"}
</span>
<span>{view.name}</span>
</div>
</div>
</div>;
}
)}
);
})
.filter((value: any) => value != null)}
</div>
);
}
......
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