Merge pull request #3921 from influxdata/fix/tempVars-visitor-names

Make template variable names visible to visitors
pull/10616/head
Iris Scholten 2018-07-13 16:42:03 -07:00 committed by GitHub
commit ca9f0746ba
1 changed files with 7 additions and 5 deletions

View File

@ -60,16 +60,18 @@ class TemplateControl extends PureComponent<Props, State> {
) : (
<TemplateDropdown template={template} onPickValue={onPickValue} />
)}
<Authorized requiredRole={EDITOR_ROLE}>
<label className="template-control--label">
{template.tempVar}
<label className="template-control--label">
{template.tempVar}
<Authorized requiredRole={EDITOR_ROLE}>
<span
className="icon cog-thick"
onClick={this.handleShowSettings}
data-test="edit"
/>
</label>
</Authorized>
</Authorized>
</label>
<OverlayTechnology visible={isEditing}>
<TemplateVariableEditor
template={template}