Removes feature to disable the upload presentation confirm button
This commit is contained in:
parent
1d0807b5de
commit
ee1ef66af7
@ -179,7 +179,6 @@ class PresentationUploader extends Component {
|
||||
oldCurrentId: currentPres ? currentPres.id : -1,
|
||||
preventClosing: false,
|
||||
disableActions: false,
|
||||
disableConfirm: false,
|
||||
};
|
||||
|
||||
this.handleConfirm = this.handleConfirm.bind(this);
|
||||
@ -195,16 +194,6 @@ class PresentationUploader extends Component {
|
||||
this.releaseActionsOnPresentationError = this.releaseActionsOnPresentationError.bind(this);
|
||||
}
|
||||
|
||||
static getDerivedStateFromProps(props, state) {
|
||||
const firstPres = props.presentations[0];
|
||||
if (firstPres && firstPres.isCurrent && state.disableConfirm) {
|
||||
return {
|
||||
disableConfirm: !state.disableConfirm,
|
||||
};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
this.releaseActionsOnPresentationError();
|
||||
}
|
||||
@ -414,7 +403,6 @@ class PresentationUploader extends Component {
|
||||
|
||||
this.setState({
|
||||
presentations: presentationsUpdated,
|
||||
disableConfirm: false,
|
||||
});
|
||||
}
|
||||
|
||||
@ -428,7 +416,6 @@ class PresentationUploader extends Component {
|
||||
presentations: update(presentations, {
|
||||
$splice: [[toRemoveIndex, 1]],
|
||||
}),
|
||||
disableConfirm: true,
|
||||
});
|
||||
}
|
||||
|
||||
@ -691,7 +678,7 @@ class PresentationUploader extends Component {
|
||||
render() {
|
||||
const { intl } = this.props;
|
||||
const {
|
||||
preventClosing, disableActions, presentations, disableConfirm,
|
||||
preventClosing, disableActions, presentations,
|
||||
} = this.state;
|
||||
|
||||
let awaitingConversion = false;
|
||||
@ -712,7 +699,6 @@ class PresentationUploader extends Component {
|
||||
callback: this.handleConfirm,
|
||||
label: confirmLabel,
|
||||
description: intl.formatMessage(intlMessages.confirmDesc),
|
||||
disabled: disableConfirm,
|
||||
}}
|
||||
dismiss={{
|
||||
callback: this.handleDismiss,
|
||||
|
Loading…
Reference in New Issue
Block a user