remove the last of the localStorage for passing parameters

This commit is contained in:
2024-08-30 21:55:08 -06:00
parent b15476e379
commit 0947c55110
6 changed files with 14 additions and 38 deletions

View File

@@ -483,7 +483,7 @@ export default class ProjectViewView extends Vue {
name = "";
offersToThis: Array<OfferSummaryRecord> = [];
offersHitLimit = false;
projectId = localStorage.getItem("projectId") || ""; // handle ID
projectId = ""; // handle ID
showDidCopy = false;
startTime = "";
truncatedDesc = "";
@@ -514,9 +514,9 @@ export default class ProjectViewView extends Vue {
}
onEditClick() {
localStorage.setItem("projectId", this.projectId as string);
const route = {
name: "new-edit-project",
query: { projectId: this.projectId },
};
(this.$router as Router).push(route);
}
@@ -838,7 +838,6 @@ export default class ProjectViewView extends Vue {
* @param id of the project
**/
async onClickLoadProject(projectId: string) {
localStorage.setItem("projectId", projectId);
const route = {
path: "/project/" + encodeURIComponent(projectId),
};
@@ -874,9 +873,11 @@ export default class ProjectViewView extends Vue {
}
onClickAllContactsGifting() {
localStorage.setItem("projectId", this.projectId);
const route = {
name: "contact-gift",
query: {
projectId: this.projectId,
},
};
(this.$router as Router).push(route);
}