|
438 | 438 | <script lang="ts">
|
439 | 439 | import { Component, Vue, Watch } from "vue-property-decorator";
|
440 | 440 | import { VuetifyGoToTarget } from "vuetify/types/services/goto";
|
441 |
| -import { mapActions, mapGetters } from "vuex"; |
442 | 441 | import { mapActions as pmapActions, mapState } from "pinia";
|
443 |
| -import { useAppState, useTopicState } from "@/stores"; |
| 442 | +import { useAppState, useTopicState, useEntityState, useEntityDescState, useIconState, useCredentialTypeState } from "@/stores"; |
444 | 443 | import moment from "moment";
|
445 | 444 |
|
446 | 445 | import {
|
@@ -496,23 +495,14 @@ export default {
|
496 | 495 | };
|
497 | 496 | },
|
498 | 497 | computed: {
|
499 |
| - ...mapGetters({ |
| 498 | + ...mapState(useCredentialTypeState, { |
500 | 499 | credentialTypes: "credentialTypes",
|
501 |
| - entityDesc: "entityDesc", |
502 |
| - getEntityFilters: "getEntityFilters", |
503 |
| - getRelationships: "getRelationships", |
504 |
| - getScrollY: "getScrollY", |
505 |
| - mdiArrowUp: "mdiArrowUp", |
506 |
| - mdiArrowDown: "mdiArrowDown", |
507 |
| - mdiArrowLeft: "mdiArrowLeft", |
508 |
| - mdiMapMarker: "mdiMapMarker", |
509 |
| - mdiChevronLeft: "mdiChevronLeft", |
510 |
| - mdiChevronRight: "mdiChevronRight", |
511 |
| - mdiCircleMedium: "mdiCircleMedium", |
512 |
| - mdiInformationOutline: "mdiInformationOutline", |
513 | 500 | }),
|
| 501 | + ...mapState(useIconState, ["mdiArrowUp", "mdiArrowDown", "mdiArrowLeft", "mdiMapMarker", "mdiChevronLeft", "mdiChevronRight", "mdiCircleMedium", "mdiInformationOutline"]), |
514 | 502 | ...mapState(useAppState, { loading: "getLoading" }),
|
515 | 503 | ...mapState(useTopicState, ["selectedTopic", "selectedTopicFullCredentialSet"]),
|
| 504 | + ...mapState(useEntityState, ["getScrollY","getRelationships", "getEntityFilters"]), |
| 505 | + ...mapState(useEntityDescState, ["entityDesc"]), |
516 | 506 | hasAnyRelationships: function (): boolean {
|
517 | 507 | return (
|
518 | 508 | this.businessAsRelationship?.length > 0 ||
|
@@ -717,16 +707,13 @@ export default {
|
717 | 707 |
|
718 | 708 | },
|
719 | 709 | methods: {
|
720 |
| - ...mapActions({ |
| 710 | + ...pmapActions(useCredentialTypeState, { |
721 | 711 | fetchCredentialTypes: "fetchCredentialTypes",
|
722 |
| - setCredentialType: "setCredentialType", |
723 |
| - setEntityDesc: "setEntityDesc", |
724 |
| - setRegistrationType: "setRegistrationType", |
725 |
| - setIssuers: "setIssuers", |
726 |
| - fetchRelationships: "fetchRelationships", |
727 | 712 | }),
|
728 | 713 | ...pmapActions(useAppState, ["setLoading"]),
|
729 | 714 | ...pmapActions(useTopicState, ["fetchFormattedIdentifiedTopic", "fetchTopicFullCredentialSet"]),
|
| 715 | + ...pmapActions(useEntityState, ["fetchRelationships", "setIssuers", "setCredentialType", "setRegistrationType",]), |
| 716 | + ...pmapActions(useEntityDescState, ["setEntityDesc"]), |
730 | 717 | credOrRelationshipToDisplay,
|
731 | 718 | getRelationshipName,
|
732 | 719 | getCredentialLabel,
|
|
0 commit comments