1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

change unpublish Wiki (#7059)

This commit is contained in:
Michael An
2024-11-19 11:22:10 +08:00
committed by GitHub
parent e999be4320
commit 98769ca5bd

View File

@@ -127,7 +127,9 @@ class PublishWikiDialog extends React.Component {
{this.state.errMessage && <Alert color="danger" className="mt-2">{this.state.errMessage}</Alert>}
</ModalBody>
<ModalFooter>
<Button color="secondary" onClick={this.deleteCustomUrl} disabled={this.props.customUrl === ''}>{gettext('Delete')}</Button>
{this.props.customUrl !== '' &&
<Button color="secondary" onClick={this.deleteCustomUrl}>{gettext('Unpublish')}</Button>
}
<Button color="primary" onClick={this.handleSubmit} disabled={!this.state.isSubmitBtnActive}>{gettext('Submit')}</Button>
</ModalFooter>
</Modal>