Merge pull request #3375 from influxdata/fixes/disabling-template-vars

Fixes boolean logic for template var dropdowns
pull/3379/head
Brandon Farmer 2018-05-04 14:07:59 -07:00 committed by GitHub
commit 9accc70d55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ const TemplateControlDropdown: SFC<Props> = ({
menuClass="dropdown-astronaut"
useAutoComplete={true}
selected={selectedItem.text}
disabled={!isUsingAuth || !isUserAuthorized(meRole, EDITOR_ROLE)}
disabled={isUsingAuth && !isUserAuthorized(meRole, EDITOR_ROLE)}
onChoose={onSelectTemplate(template.id)}
/>
<label className="template-control--label">{template.tempVar}</label>