mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 10:26:17 +00:00
Side nav (#6309)
* [user panel] combined 7 commits into 1: [user side nav] added 'fold/unfold' for the sidebar [redesign] redesigned toolbar for 'my libs' & 'shared with all'; redesigned 'top bar' for 'help', 'clients' and other pages [Shared with all] 'share existing libraries' dialog: added the 'close' icon back, enabled clicking outside to close the dialog ['Invite Guest' page] redesigned the toolbar ['Share Admin' - 'Links'] 'Share Links' page: redesigned the toolbar ['Share Admin' - 'Links'] 'Upload Links' page: redesigned the toolbar cleaned up code * [user side panel] update * [user panel] update * [code style] update: remove an eslint warning
This commit is contained in:
@@ -108,10 +108,10 @@ class ShareRepoDialog extends React.Component {
|
||||
}
|
||||
|
||||
this.props.onRepoSelectedHandler(this.state.selectedRepoList);
|
||||
this.onCloseDialog();
|
||||
this.toggle();
|
||||
};
|
||||
|
||||
onCloseDialog = () => {
|
||||
toggle = () => {
|
||||
this.props.onShareRepoDialogClose();
|
||||
};
|
||||
|
||||
@@ -146,7 +146,7 @@ class ShareRepoDialog extends React.Component {
|
||||
</ModalBody>
|
||||
{this.state.errMessage && <Alert color="danger" className="mt-2">{this.state.errMessage}</Alert>}
|
||||
<ModalFooter>
|
||||
<Button color="secondary" onClick={this.onCloseDialog}>{gettext('Close')}</Button>
|
||||
<Button color="secondary" onClick={this.toggle}>{gettext('Close')}</Button>
|
||||
<Button color="primary" onClick={this.handleSubmit}>{gettext('Submit')}</Button>
|
||||
</ModalFooter>
|
||||
</Modal>
|
||||
|
Reference in New Issue
Block a user