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