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

Commit

Permalink
Dont auto-bounce to create if writable=false
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Nov 30, 2020
1 parent 5c1922e commit 8cbdfda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/fg/modals/select-drive.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ class SelectDriveModal extends LitElement {
this.drives = await bg.drives.list({includeSystem: false})
this.drives.sort((a, b) => (a.info.title).localeCompare(b.info.title))

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

Expand Down

0 comments on commit 8cbdfda

Please sign in to comment.