forked from jsnbuchanan/crowd-funder-for-time-pwa
remove the last of the localStorage for passing parameters
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user