1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-21 06:09:40 +02:00

Feature/copy icon (#406)

* add copy tooltip

* transparent scrollbar

* add version to header

* localize

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-05-11 20:56:30 -08:00 committed by GitHub
parent 5a38589a60
commit 5f074fe5d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 79 additions and 20 deletions

View file

@ -129,7 +129,7 @@ export default {
},
async downloadJson() {
const recipe = await api.recipes.requestDetails(this.slug);
this.downloadString(JSON.stringify(recipe, "", 4), "text/json", recipe.slug+'.json');
this.downloadString(JSON.stringify(recipe, "", 4), "text/json", recipe.slug + ".json");
},
downloadString(text, fileType, fileName) {
let blob = new Blob([text], { type: fileType });