1
0
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:
Daniel Pan 2019-06-27 15:49:29 +08:00 committed by GitHub
commit dcf94e3159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View File

@ -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>
)}

View File

@ -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')}

View File

@ -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:

View File

@ -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;