mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-30 21:50:59 +00:00
Merge pull request #3748 from haiwen/label-current-state
[my libs] modification for 'label current state' & 'history setting'
This commit is contained in:
commit
dcf94e3159
@ -87,13 +87,14 @@ class LabelRepoStateDialog extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Modal isOpen={true} centered={true} toggle={this.props.toggleDialog}>
|
||||
<ModalHeader toggle={this.props.toggleDialog}>{gettext('Label current state')}</ModalHeader>
|
||||
<Modal isOpen={true} toggle={this.props.toggleDialog}>
|
||||
<ModalHeader toggle={this.props.toggleDialog}>{gettext('Label Current State')}</ModalHeader>
|
||||
<ModalBody>
|
||||
<Content data={this.state} handleChange={this.handleInputChange} />
|
||||
</ModalBody>
|
||||
{this.state.existingLabels && (
|
||||
<ModalFooter>
|
||||
<button className="btn btn-secondary" onClick={this.props.toggleDialog}>{gettext('Cancel')}</button>
|
||||
<button className="btn btn-primary" disabled={this.state.submitBtnDisabled} onClick={this.formSubmit}>{gettext('Submit')}</button>
|
||||
</ModalFooter>
|
||||
)}
|
||||
|
@ -94,7 +94,7 @@ class LibHistorySetting extends React.Component {
|
||||
render() {
|
||||
const itemName = this.props.itemName;
|
||||
return (
|
||||
<Modal isOpen={true} centered={true}>
|
||||
<Modal isOpen={true}>
|
||||
<ModalHeader toggle={this.props.toggleDialog}>
|
||||
<span className="op-target" title={itemName}>{itemName}</span>{' '}
|
||||
{gettext('History Setting')}
|
||||
|
@ -93,7 +93,7 @@ class MylibRepoListItem extends React.Component {
|
||||
case 'Folder Permission':
|
||||
this.onFolderPermissionToggle();
|
||||
break;
|
||||
case 'Label current state':
|
||||
case 'Label Current State':
|
||||
this.onLabelToggle();
|
||||
break;
|
||||
default:
|
||||
|
@ -63,7 +63,7 @@ class MylibRepoMenu extends React.Component {
|
||||
operations.push('Folder Permission');
|
||||
}
|
||||
if (this.props.isPC && enableRepoSnapshotLabel) {
|
||||
operations.push('Label current state');
|
||||
operations.push('Label Current State');
|
||||
}
|
||||
return operations;
|
||||
}
|
||||
@ -95,8 +95,8 @@ class MylibRepoMenu extends React.Component {
|
||||
case 'Folder Permission':
|
||||
translateResult = gettext('Folder Permission');
|
||||
break;
|
||||
case 'Label current state':
|
||||
translateResult = gettext('Label current state');
|
||||
case 'Label Current State':
|
||||
translateResult = gettext('Label Current State');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user