Check the admin mode (#1836)

This commit is contained in:
Adri Valle 2019-10-08 15:36:05 +02:00 committed by GitHub
parent fc0e59e036
commit de69af3b11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,6 @@ import {
EuiListGroup,
EuiTitle,
EuiText,
EuiIcon,
EuiSpacer,
EuiPopover
} from '@elastic/eui';

View File

@ -16,7 +16,7 @@
<span class="euiButtonEmpty__text">Export formatted</span>
</span>
</button>
<react-component name="UploadFiles" props="mctrl.uploadFilesProps" class="wz-margin-left-10"/>
<react-component ng-if="mctrl.adminMode" name="UploadFiles" props="mctrl.uploadFilesProps" class="wz-margin-left-10"/>
<button type="button" ng-click="cdbctrl.refresh()" class="euiButtonEmpty euiButtonEmpty--primary euiButtonEmpty--small wz-margin-left-10">
<span class="euiButtonEmpty__content">
<react-component name="EuiIcon" props="{type:'refresh'}" />

View File

@ -19,7 +19,7 @@
new {{mctrl.globalRulesetTab}} file</span>
</span>
</button>
<react-component name="UploadFiles" props="mctrl.uploadFilesProps" class="wz-margin-left-10"/>
<react-component ng-if="mctrl.adminMode" name="UploadFiles" props="mctrl.uploadFilesProps" class="wz-margin-left-10"/>
<button type="button" ng-click="filesctrl.refresh()" class="euiButtonEmpty euiButtonEmpty--primary euiButtonEmpty--small wz-margin-left-10">
<span class="euiButtonEmpty__content">
<react-component name="EuiIcon" props="{type:'refresh'}" />