Skip to content

Commit

Permalink
Refactor scheme right report/editor, #226
Browse files Browse the repository at this point in the history
  • Loading branch information
njkim committed Feb 27, 2025
1 parent 1d9a4b2 commit c538734
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 664 deletions.
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
<script setup lang="ts">
import { inject, onMounted, ref, toRaw, type Ref } from "vue";
import { inject, onMounted, ref, type Ref } from "vue";
import { useRoute, useRouter } from "vue-router";
import { useGettext } from "vue3-gettext";
import { useToast } from "primevue/usetoast";
import Button from "primevue/button";
import SchemeReportSection from "@/arches_lingo/components/scheme/report/SchemeSection.vue";
import {
createScheme,
fetchLingoResource,
fetchLingoResources,
updateLingoResource,
} from "@/arches_lingo/api.ts";
import { fetchLists } from "@/arches_controlled_lists/api.ts";
import type {
ControlledListResult,
ControlledListItem,
ControlledListItemResult,
DataComponentMode,
ResourceInstanceReference,
ResourceInstanceResult,
SchemeInstance,
SchemeRights,
SchemeRightStatement,
} from "@/arches_lingo/types";
Expand Down Expand Up @@ -189,8 +183,8 @@ defineExpose({ getSectionValue });
/>
<SchemeLicenseEditor
v-else-if="mode === EDIT"
:scheme-rights="shouldCreateNewTile ? undefined : schemeRights[0]"
:scheme-right-statement="shouldCreateNewTile ? undefined : schemeRightStatement[0]"
:scheme-rights="shouldCreateNewTile ? undefined : schemeRights"
:scheme-right-statement="shouldCreateNewTile ? undefined : schemeRightStatement"
/>
</template>
</template>
Loading

0 comments on commit c538734

Please sign in to comment.