Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 8cbdfda

Browse files
committed
Dont auto-bounce to create if writable=false
1 parent 5c1922e commit 8cbdfda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/fg/modals/select-drive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ class SelectDriveModal extends LitElement {
181181
this.drives = await bg.drives.list({includeSystem: false})
182182
this.drives.sort((a, b) => (a.info.title).localeCompare(b.info.title))
183183

184-
if (!!params.template && this.filteredDrives.length === 0) {
185-
// bounce to create
184+
if (this.writable !== false && !!params.template && this.filteredDrives.length === 0) {
185+
// autobounce to create
186186
return this.cbs.resolve({gotoCreate: true})
187187
}
188188

0 commit comments

Comments
 (0)