mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-29 17:24:31 -04: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:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user