Skip to content

Commit

Permalink
Add constance, #151
Browse files Browse the repository at this point in the history
  • Loading branch information
njkim committed Jan 9, 2025
1 parent 0848be7 commit 6c9d793
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import {
selectedLanguageKey,
VIEW,
EDIT,
OPEN_EDITOR,
UPDATED,
RIGHT_TYPE_CONTROLLED_LIST,
} from "@/arches_lingo/constants.ts";
import ResourceInstanceRelationships from "@/arches_lingo/components/generic/ResourceInstanceRelationships.vue";
Expand All @@ -37,7 +39,7 @@ defineProps<{
mode?: DataComponentMode;
}>();
const emit = defineEmits(["openEditor", "update"]);
const emit = defineEmits([OPEN_EDITOR, UPDATED]);
const schemeRight = ref<SchemeRights>();
const tileid = ref<string>();
Expand Down Expand Up @@ -100,7 +102,7 @@ async function save() {
tileid.value as string,
schemeRight.value as SchemeRights,
);
emit("update");
emit(UPDATED);
};
async function getSectionValue() {
const actorOptions = await getActorOptions();
Expand Down Expand Up @@ -131,7 +133,7 @@ const { $gettext } = useGettext();
<SchemeReportSection
:title-text="$gettext('Scheme Rights')"
:button-text="$gettext('Update Scheme Rights')"
@open-editor="$emit('openEditor')"
@open-editor="$emit(OPEN_EDITOR)"
>
<h4>{{ $gettext('Rights Holders') }}</h4>
<ResourceInstanceRelationships
Expand Down

0 comments on commit 6c9d793

Please sign in to comment.