mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
12.0 grid view support multiple selection (#6403)
* Feature - multiple selection with ctrl/shift * update grid view context menu list in multiple selection mode * fix code format * optimize codes
This commit is contained in:
@@ -128,7 +128,7 @@ class LinkCreation extends React.Component {
|
||||
request = seafileAPI.batchCreateMultiShareLink(repoID, itemPath, linkAmount, autoGeneratePassword, expirationTime, permissions);
|
||||
} else {
|
||||
const { currentScope, selectedOption, inputEmails } = this.state;
|
||||
if ( currentScope === 'specific_users' && selectedOption ) {
|
||||
if (currentScope === 'specific_users' && selectedOption) {
|
||||
users = selectedOption.map((item, index) => item.email);
|
||||
}
|
||||
if (currentScope === 'specific_emails' && inputEmails) {
|
||||
@@ -232,7 +232,7 @@ class LinkCreation extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
if (minDays === 0 && maxDays !== 0 ) {
|
||||
if (minDays === 0 && maxDays !== 0) {
|
||||
if (expireDays > maxDays) {
|
||||
this.setState({ errorInfo: 'Please enter valid days' });
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user