mirror of
https://github.com/bellingcat/auto-archiver-setup-tool.git
synced 2026-06-11 04:58:36 +03:00
minor fixes
This commit is contained in:
@@ -227,15 +227,15 @@ export default {
|
||||
.then(response => response.json())
|
||||
.then(task => {
|
||||
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.archiveResult = task;
|
||||
this.taskId = task.id;
|
||||
} 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.taskId = null;
|
||||
this.archiveFailure = task.result.error;
|
||||
this.archiveFailure = task.error;
|
||||
} else {
|
||||
setTimeout(poll, 5000); // Poll every 5 seconds
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user