Merge pull request #2560 from influxdata/2422-disallow-viewer-switch-kapacitors-rebased
Render static text instead of kapacitor switching dropdown for Viewerspull/2564/head
commit
31ee9c4f46
|
@ -43,10 +43,16 @@ const kapacitorDropdown = (
|
||||||
selected = kapacitorItems[0].text
|
selected = kapacitorItems[0].text
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const unauthorizedDropdown = (
|
||||||
|
<div className="source-table--kapacitor__view-only">
|
||||||
|
{selected}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Authorized
|
<Authorized
|
||||||
requiredRole={EDITOR_ROLE}
|
requiredRole={EDITOR_ROLE}
|
||||||
propsOverride={{addNew: null, actions: null}}
|
replaceWithIfNotAuthorized={unauthorizedDropdown}
|
||||||
>
|
>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
className="dropdown-260"
|
className="dropdown-260"
|
||||||
|
|
|
@ -180,6 +180,11 @@ br {
|
||||||
border-left: 2px solid $g5-pepper;
|
border-left: 2px solid $g5-pepper;
|
||||||
width: 278px;
|
width: 278px;
|
||||||
}
|
}
|
||||||
|
.source-table--kapacitor__view-only {
|
||||||
|
@include no-user-select();
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Styles for the Status Dashboard
|
Styles for the Status Dashboard
|
||||||
|
|
Loading…
Reference in New Issue