Browse Source

fix load-project function

kb/add-usage-guide
Trent Larson 1 year ago
parent
commit
c40b690878
  1. 1
      project.task.yaml
  2. 2
      src/views/ProjectsView.vue

1
project.task.yaml

@ -3,7 +3,6 @@ tasks:
- allow type annotations in World.js & landmarks.js (since we get this error - "Types are not supported by current JavaScript version") - allow type annotations in World.js & landmarks.js (since we get this error - "Types are not supported by current JavaScript version")
- replace user-affecting console.log & console.error with error messages (eg. catches) - replace user-affecting console.log & console.error with error messages (eg. catches)
- if there's no identity, handle it on pages which expect an identity (eg. project -- look for JSON.parse identity calls) - if there's no identity, handle it on pages which expect an identity (eg. project -- look for JSON.parse identity calls)
- .1 show an appropriate message when there are no contacts
- 8 Move to vue-facing-decorator - 8 Move to vue-facing-decorator

2
src/views/ProjectsView.vue

@ -187,7 +187,7 @@ export default class ProjectsView extends Vue {
/** /**
* Handle clicking on a project entry found in the list * Handle clicking on a project entry found in the list
* @param id of the project * @param id of the project
**? **/
onClickLoadProject(id: string) { onClickLoadProject(id: string) {
localStorage.setItem("projectId", id); localStorage.setItem("projectId", id);
const route = { const route = {

Loading…
Cancel
Save