Bundle sudo actions into system task for cleaner permissions - some users may not be comfortable with this

This commit is contained in:
James Barnsley
2018-04-16 15:51:35 +12:00
parent 55ade30130
commit b3007b7bd5
8 changed files with 25472 additions and 23500 deletions

View File

@ -52,10 +52,22 @@ export default class ConfirmationButton extends React.Component{
if (this.state.confirming){
className += ' confirming';
content = this.props.confirmingContent;
if (this.state.timing_out ) className += ' timing-out';
if (this.state.timing_out){
className += ' timing-out';
}
}
if (this.props.className ) className += ' '+this.props.className
if (this.props.working){
className += ' working';
if (this.props.workingContent){
content = this.props.workingContent;
}
}
if (this.props.className){
className += ' '+this.props.className;
}
return (
<button