mirror of
https://github.com/bellingcat/auto-archiver-setup-tool.git
synced 2026-06-13 05:58:37 +03:00
minor fixes
This commit is contained in:
@@ -227,15 +227,15 @@ export default {
|
|||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(task => {
|
.then(task => {
|
||||||
if (task.status === "SUCCESS") {
|
if (task.status === "SUCCESS") {
|
||||||
this.showSnackbar(`URL archived successfully with id ${task.result.id}!`, "green");
|
this.showSnackbar(`URL archived successfully with id ${task.id}!`, "green");
|
||||||
this.loadingArchive = false;
|
this.loadingArchive = false;
|
||||||
this.archiveResult = task;
|
this.archiveResult = task;
|
||||||
this.taskId = task.id;
|
this.taskId = task.id;
|
||||||
} else if (task.status === "FAILURE") {
|
} else if (task.status === "FAILURE") {
|
||||||
this.showSnackbar(`Failed to archive URL: ${task.result.error}`);
|
this.showSnackbar(`Failed to archive URL: ${task.error}`);
|
||||||
this.loadingArchive = false;
|
this.loadingArchive = false;
|
||||||
this.taskId = null;
|
this.taskId = null;
|
||||||
this.archiveFailure = task.result.error;
|
this.archiveFailure = task.error;
|
||||||
} else {
|
} else {
|
||||||
setTimeout(poll, 5000); // Poll every 5 seconds
|
setTimeout(poll, 5000); // Poll every 5 seconds
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user