Are you sure you want to delete "{{ props.report.name }}" from the list?
diff --git a/web/src/components/upload/UploadsTableInfoDialog.vue b/web/src/components/upload/UploadsTableInfoDialog.vue
index 33bd7305d..62b59bbc5 100644
--- a/web/src/components/upload/UploadsTableInfoDialog.vue
+++ b/web/src/components/upload/UploadsTableInfoDialog.vue
@@ -31,7 +31,7 @@ const isDone = computed(
props.report.status === "finished" ||
props.report.status === "error" ||
props.report.status === "failed" ||
- props.report.status === "deleted"
+ props.report.status === "purged"
);
@@ -117,7 +117,7 @@ const isDone = computed(
-
+
This report has been deleted on the server and is no longer available.
diff --git a/web/src/main.ts b/web/src/main.ts
index 88e18a832..608c74718 100644
--- a/web/src/main.ts
+++ b/web/src/main.ts
@@ -4,12 +4,15 @@ import { createApp } from "vue";
import { createVuetify } from "vuetify";
import { createPinia } from "pinia";
import webFontLoader from "webfontloader";
+import axios from "axios";
// Styles
import "@mdi/font/css/materialdesignicons.css";
import "vuetify/styles";
import "@/assets/scss/main.scss";
+axios.defaults.validateStatus = () => true;
+
// Create the app
const app = createApp(App);
diff --git a/web/src/stores/reports.store.ts b/web/src/stores/reports.store.ts
index f75196200..c1625f1c6 100644
--- a/web/src/stores/reports.store.ts
+++ b/web/src/stores/reports.store.ts
@@ -1,14 +1,14 @@
-import {UploadReport, Report} from "@/types/uploads/UploadReport";
+import {Report} from "@/types/uploads/UploadReport";
import {useLocalStorage} from "@vueuse/core";
import {defineStore} from "pinia";
-import {computed, onMounted} from "vue";
+import {computed, onMounted, ref, shallowRef} from "vue";
import {useRoute} from "vue-router";
import slugify from "slugify";
import axios from "axios";
+
export const useReportsStore = defineStore("reports", () => {
// List of uploaded reports in localstorage.
- const oldReports = useLocalStorage("reports:upload", []);
const reports = useLocalStorage("dolos:reports", [], {
serializer: {
read: (v: any) => Report.arrayFromSerialized(v),
@@ -29,6 +29,33 @@ export const useReportsStore = defineStore("reports", () => {
return slug;
}
+ const MAX_POLLS = 90; // Default execution timeout is 60s
+ const POLLING_INTERVAL_MS = 1000;
+ const polling = ref