diff --git a/webapp/package-lock.json b/webapp/package-lock.json index f9b68eb..bb866a5 100755 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -12,6 +12,7 @@ "@fortawesome/free-solid-svg-icons": "^6.4.0", "@fortawesome/vue-fontawesome": "^3.0.3", "axios": "^1.4.0", + "file-saver": "^2.0.5", "pinia": "^2.1.4", "primevue": "^3.31.0", "vee-validate": "^4.11.7", @@ -26,6 +27,7 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/user-event": "^14.4.3", "@testing-library/vue": "^7.0.0", + "@types/file-saver": "^2.0.7", "@types/jsdom": "^21.1.1", "@types/node": "^20.3.1", "@vitejs/plugin-vue": "^4.2.3", @@ -1156,6 +1158,12 @@ "@types/ms": "*" } }, + "node_modules/@types/file-saver": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/file-saver/-/file-saver-2.0.7.tgz", + "integrity": "sha512-dNKVfHd/jk0SkR/exKGj2ggkB45MAkzvWCaqLUUgkyjITkGNzH8H+yUwr+BLJUBjZOe9w8X3wgmXhZDRg1ED6A==", + "dev": true + }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", @@ -3613,6 +3621,11 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/file-saver": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz", + "integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==" + }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", diff --git a/webapp/package.json b/webapp/package.json index 9813cf2..da67261 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -15,6 +15,7 @@ "@fortawesome/free-solid-svg-icons": "^6.4.0", "@fortawesome/vue-fontawesome": "^3.0.3", "axios": "^1.4.0", + "file-saver": "^2.0.5", "pinia": "^2.1.4", "primevue": "^3.31.0", "vee-validate": "^4.11.7", @@ -29,6 +30,7 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/user-event": "^14.4.3", "@testing-library/vue": "^7.0.0", + "@types/file-saver": "^2.0.7", "@types/jsdom": "^21.1.1", "@types/node": "^20.3.1", "@vitejs/plugin-vue": "^4.2.3", diff --git a/webapp/src/views/InstanceView.vue b/webapp/src/views/InstanceView.vue index 8eb0c2d..f47b9cc 100644 --- a/webapp/src/views/InstanceView.vue +++ b/webapp/src/views/InstanceView.vue @@ -129,6 +129,7 @@ >
Are you sure you want to delete: - {{ att }} ? + {{ attachment }} ?