mirror of
https://github.com/lana-k/sqliteviz.git
synced 2026-03-24 23:16:18 +08:00
#16 save as
This commit is contained in:
@@ -15,9 +15,9 @@ export default {
|
||||
|
||||
return inquiry.id
|
||||
},
|
||||
async saveInquiry({ state }, { inquiryTab, newName }) {
|
||||
async saveInquiry({ state }, { inquiryTab, newName, overwrite }) {
|
||||
const value = {
|
||||
id: inquiryTab.isPredefined ? nanoid() : inquiryTab.id,
|
||||
id: inquiryTab.isPredefined || !overwrite ? nanoid() : inquiryTab.id,
|
||||
query: inquiryTab.query,
|
||||
viewType: inquiryTab.dataView.mode,
|
||||
viewOptions: inquiryTab.dataView.getOptionsForSave(),
|
||||
|
||||
Reference in New Issue
Block a user