Skip to content

Commit

Permalink
bugfix - nearbeach-1028 Organisation Information page load has error
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Clarke committed Jun 30, 2023
1 parent f83da1b commit e54fe05
Show file tree
Hide file tree
Showing 46 changed files with 1,995 additions and 183 deletions.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/5553.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/5553.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/NearBeach.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/NearBeach.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/organisation-modules.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/organisation-modules.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/parent-modules.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/parent-modules.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
9 changes: 3 additions & 6 deletions src/js/components/modules/ParentModules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,7 @@
role="tabpanel"
aria-labelledby="contact-tab"
>
<misc-module
v-bind:location-id="locationId"
v-bind:destination="destination"
></misc-module>
<list-tags-module></list-tags-module>
</div>
<div
class="tab-pane fade"
Expand All @@ -318,8 +315,8 @@
import DocumentsModule from "./sub_modules/DocumentsModule.vue";
import ObjectLinks from "./sub_modules/ObjectLinks.vue";
import CustomersModule from "./sub_modules/CustomersModule.vue";
import ListTagsModule from "./sub_modules/ListTagsModule.vue";
import BugsModule from "./sub_modules/BugsModule.vue";
import MiscModule from "./sub_modules/MiscModule.vue";
import NotesModule from "./sub_modules/NotesModule.vue";
export default {
Expand All @@ -329,7 +326,7 @@
CustomersModule,
DocumentsModule,
GroupsAndUsersModule,
MiscModule,
ListTagsModule,
NotesModule,
ObjectLinks,
RequirementItemLinksModule,
Expand Down
5 changes: 3 additions & 2 deletions src/js/components/modules/sub_modules/AssociatedObjects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@
mixins: [iconMixin],
data() {
return {
destination: "getDestination",
locationId: "getLocationId",
projectResults: [],
requirementResults: [],
taskResults: [],
};
},
computed: {
...mapGetters({
destination: "getDestination",
locationId: "getLocationId",
rootUrl: "getRootUrl",
}),
},
Expand Down Expand Up @@ -221,6 +221,7 @@
mounted() {
//Wait 200ms
setTimeout(() => {
console.log("Destination: ", this.destination);
this.getAssociatedObjectResults();
}, 200);
},
Expand Down
22 changes: 3 additions & 19 deletions src/js/components/modules/sub_modules/MiscModule.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<template>
<div>
<list-tags-module
v-bind:destination="destination"
v-bind:location-id="locationId"
></list-tags-module>
<list-tags-module></list-tags-module>
</div>
</template>

Expand All @@ -16,23 +13,10 @@
components: {
ListTagsModule,
},
props: {
destination: {
type: String,
default: "",
},
locationId: {
type: Number,
default: 0,
},
},
props: {},
mixins: [],
computed: {},
data() {
return {
noteHistoryResults: [],
};
},
data() {},
methods: {},
mounted() {},
};
Expand Down
18 changes: 10 additions & 8 deletions src/js/components/organisations/OrganisationModules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@
aria-labelledby="profile-tab"
>
<associated-objects
v-bind:destination="destination"
v-bind:location-id="locationId"
></associated-objects>
</div>
<div
Expand All @@ -169,10 +167,7 @@
role="tabpanel"
aria-labelledby="profile-tab"
>
<misc-module
v-bind:destination="destination"
v-bind:location-id="locationId"
></misc-module>
<list-tags-module></list-tags-module>
</div>
<div
class="tab-pane fade"
Expand Down Expand Up @@ -200,9 +195,9 @@
import { Modal } from "bootstrap";
import { Icon } from "@iconify/vue";
import CustomersListModule from "../modules/sub_modules/CustomersListModule.vue";
import ListTagsModule from "../modules/sub_modules/ListTagsModule.vue";
import NewCustomerModal from "../customers/NewCustomerModal.vue";
import NotesModule from "../modules/sub_modules/NotesModule.vue";
import MiscModule from "../modules/sub_modules/MiscModule.vue";
import AssociatedObjects from "../modules/sub_modules/AssociatedObjects.vue";
import DocumentsModule from "../modules/sub_modules/DocumentsModule.vue";
Expand All @@ -219,7 +214,7 @@
CustomersListModule,
DocumentsModule,
Icon,
MiscModule,
ListTagsModule,
NewCustomerModal,
NotesModule,
},
Expand Down Expand Up @@ -284,6 +279,13 @@
type: "updateUserLevel",
userLevel: this.userLevel,
});
//Send the destination and location to VUEX
this.$store.commit({
type: "updateDestination",
destination: this.destination,
locationId: this.locationId,
})
},
};
</script>
Expand Down

0 comments on commit e54fe05

Please sign in to comment.