fix bad link to project page, fix improper action on invite-add-contact cancel

This commit is contained in:
2024-10-12 20:55:55 -06:00
parent 9c527b27f8
commit 6f880d0df1
12 changed files with 125 additions and 94 deletions

View File

@@ -566,35 +566,22 @@ export default class ProjectViewView extends Vue {
group: "alert",
type: "danger",
title: "Error",
text: "There was a problem getting that project. See logs for more info.",
text: "There was a problem getting that project.",
},
5000,
);
}
} catch (error: unknown) {
console.error("Error retrieving project:", error);
const serverError = error as AxiosError;
if (serverError.response?.status === 404) {
this.$notify(
{
group: "alert",
type: "danger",
title: "Error",
text: "That project does not exist.",
},
5000,
);
} else {
this.$notify(
{
group: "alert",
type: "danger",
title: "Error",
text: "Something went wrong retrieving that project. See logs for more info.",
},
5000,
);
}
this.$notify(
{
group: "alert",
type: "danger",
title: "Error",
text: "Something went wrong retrieving that project.",
},
5000,
);
}
this.loadGives();
@@ -1011,7 +998,7 @@ export default class ProjectViewView extends Vue {
console.error("Got error submitting the confirmation:", result);
const message =
(result.error?.error as string) ||
"There was a problem submitting the confirmation. See logs for more info.";
"There was a problem submitting the confirmation.";
this.$notify(
{
group: "alert",