Actions for JSON responses

This commit is contained in:
Liyas Thomas
2020-06-22 12:25:43 +05:30
parent b44ba30873
commit e04e82e81d
2 changed files with 148 additions and 21 deletions

View File

@@ -94,6 +94,7 @@ export default {
const a = document.createElement("a")
const url = URL.createObjectURL(file)
a.href = url
// TODO get uri from meta
a.download = `response on ${Date()}`.replace(/\./g, "[dot]")
document.body.appendChild(a)
a.click()