This commit is contained in:
parent
d68e9a7b8e
commit
0863fb3bdf
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
import { checkPermission } from 'plugins/ml/privilege/check_privilege';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React, {
|
import React, {
|
||||||
Component,
|
Component,
|
||||||
|
@ -66,6 +67,7 @@ export class GroupSelector extends Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.refreshJobs = this.props.refreshJobs;
|
this.refreshJobs = this.props.refreshJobs;
|
||||||
|
this.canUpdateJob = checkPermission('canUpdateJob');
|
||||||
}
|
}
|
||||||
|
|
||||||
static getDerivedStateFromProps(props, state) {
|
static getDerivedStateFromProps(props, state) {
|
||||||
|
@ -204,6 +206,7 @@ export class GroupSelector extends Component {
|
||||||
iconType="indexEdit"
|
iconType="indexEdit"
|
||||||
aria-label="Edit job groups"
|
aria-label="Edit job groups"
|
||||||
onClick={() => this.togglePopover()}
|
onClick={() => this.togglePopover()}
|
||||||
|
disabled={this.canUpdateJob === false}
|
||||||
/>
|
/>
|
||||||
</EuiToolTip>
|
</EuiToolTip>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue