Mercurial > gemma
changeset 2531:47b9a4f9a05c
client:pdf-gen: change the formatting of the downloaded json file
* insert white space in the generated json file for readabilty purpose
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 07 Mar 2019 10:17:48 +0100 |
parents | 3f61b84ae7a6 |
children | 452bc714bfd9 |
files | client/src/components/systemconfiguration/PDFTemplates.vue |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/systemconfiguration/PDFTemplates.vue Wed Mar 06 21:13:46 2019 +0100 +++ b/client/src/components/systemconfiguration/PDFTemplates.vue Thu Mar 07 10:17:48 2019 +0100 @@ -108,11 +108,15 @@ "href", "data:text/json;charset=utf-8," + encodeURIComponent( - JSON.stringify({ - name: templateData.name, - properties: templateData.properties, - elements: templateData.elements - }) + JSON.stringify( + { + name: templateData.name, + properties: templateData.properties, + elements: templateData.elements + }, + null, + 2 + ) ) ); element.click();