Skip to content

Commit

Permalink
dialog closed when user click out of dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
gee05053 committed Dec 5, 2023
1 parent a82a08a commit dbbe19f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/backend-ai-storage-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ export default class BackendAiStorageList extends BackendAIPage {
</mwc-button>
</div>
</backend-ai-dialog>
<backend-ai-dialog id="share-folder-dialog" fixed backdrop persistent>
<backend-ai-dialog id="share-folder-dialog" fixed backdrop>
<span slot="title">${_t('data.explorer.ShareFolder')}</span>
<div slot="content" role="listbox" style="margin: 0;width:100%;">
<div style="margin: 10px 0px">${_t('data.explorer.People')}</div>
Expand Down Expand Up @@ -3431,8 +3431,9 @@ export default class BackendAiStorageList extends BackendAIPage {
let text = '';
const possible =
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
for (let i = 0; i < 5; i++)
for (let i = 0; i < 5; i++) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
/* File upload size limits to configuration */
if (this._maxFileUploadSize > 0 && file.size > this._maxFileUploadSize) {
this.notification.text =
Expand Down

0 comments on commit dbbe19f

Please sign in to comment.