mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
clear user-select after submit (#3092)
This commit is contained in:
@@ -163,6 +163,7 @@ class ShareToUser extends React.Component {
|
||||
selectedOption: null,
|
||||
permission: 'rw',
|
||||
});
|
||||
this.refs.userSelect.clearSelect();
|
||||
}).catch(error => {
|
||||
if (error.response) {
|
||||
let message = gettext('Library can not be shared to owner.');
|
||||
@@ -188,6 +189,7 @@ class ShareToUser extends React.Component {
|
||||
selectedOption: null,
|
||||
permission: 'rw',
|
||||
});
|
||||
this.refs.userSelect.clearSelect();
|
||||
}).catch(error => {
|
||||
if (error.response) {
|
||||
let message = gettext('Library can not be shared to owner.');
|
||||
|
Reference in New Issue
Block a user