1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

Change share dialog (#4245)

* fix share dialog dropdown memu style

* fix some warnings
This commit is contained in:
Michael An
2019-11-12 14:43:33 +08:00
committed by Daniel Pan
parent 14a8811487
commit a6c36c24c3
6 changed files with 19 additions and 19 deletions

View File

@@ -78,11 +78,11 @@ class AddAbuseReportDialog extends React.Component {
</Input>
</FormGroup>
<FormGroup>
<Label>{gettext("Contact Information")}</Label>
<Label>{gettext('Contact Information')}</Label>
<Input type="text" value={this.state.reporter} onChange={(event) => this.setReporter(event)}/>
</FormGroup>
<FormGroup>
<Label>{gettext("Description")}</Label>
<Label>{gettext('Description')}</Label>
<Input type="textarea" onChange={(event) => this.setDescription(event)}/>
</FormGroup>
</Form>

View File

@@ -20,7 +20,7 @@ class UploadListItem extends React.Component {
super(props);
this.state = {
uploadState: UPLOAD_UPLOADING
}
};
}
componentWillReceiveProps(nextProps) {
@@ -49,7 +49,7 @@ class UploadListItem extends React.Component {
onUploadRetry = (e) => {
e.preventDefault();
this.props.onUploadRetry(this.props.resumableFile)
this.props.onUploadRetry(this.props.resumableFile);
}
formatFileSize = (size) => {

View File

@@ -68,11 +68,11 @@ class MainSideNav extends React.Component {
if (window.uploader &&
window.uploader.isUploadProgressDialogShow &&
window.uploader.totalProgress !== 100) {
if (!window.confirm(gettext('A file is being uploaded. Are you sure you want to leave this page?'))) {
e.preventDefault();
return false;
}
window.uploader.isUploadProgressDialogShow = false;
if (!window.confirm(gettext('A file is being uploaded. Are you sure you want to leave this page?'))) {
e.preventDefault();
return false;
}
window.uploader.isUploadProgressDialogShow = false;
}
this.props.tabItemClick(param, id);
}