fix: added '-Copy' to duplicated request name

This commit is contained in:
0xc0Der
2021-11-07 16:27:08 +00:00
committed by Andrew Bastin
parent 29aff9accc
commit 2ef99026e5
2 changed files with 8 additions and 2 deletions

View File

@@ -289,7 +289,10 @@ export default defineComponent({
this.$data.editingRequestIndex = undefined this.$data.editingRequestIndex = undefined
}, },
duplicateRequest({ folderPath, request }) { duplicateRequest({ folderPath, request }) {
saveGraphqlRequestAs(folderPath, request) saveGraphqlRequestAs(folderPath, {
...request,
name: request.name + "-Copy",
})
}, },
}, },
}) })

View File

@@ -687,7 +687,10 @@ export default defineComponent({
} }
}, },
duplicateRequest({ folderPath, request }) { duplicateRequest({ folderPath, request }) {
saveRESTRequestAs(folderPath, request) saveRESTRequestAs(folderPath, {
...request,
name: request.name + "-Copy",
})
}, },
}, },
}) })