fix all the lint warnings

This commit is contained in:
2023-09-04 15:17:32 -06:00
parent a5e0c847b1
commit 4b9cbd0e9f
10 changed files with 91 additions and 39 deletions

View File

@@ -129,16 +129,26 @@ export default class ProjectsView extends Vue {
}
} else {
console.log("Bad server response & data:", resp.status, resp.data);
throw Error("Failed to get projects from the server.");
this.$notify(
{
group: "alert",
type: "danger",
title: "Error",
text: "Failed to get projects from the server. Try again later.",
},
-1,
);
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) {
console.error("Got error loading projects:", error.message);
const additional = error.message ? " " + error.message : "";
this.$notify(
{
group: "alert",
type: "danger",
title: "Error",
text: "Got an error loading projects: " + error.message,
text: "Got an error loading projects." + additional,
},
-1,
);