Skip to content

Commit

Permalink
removes trusted authorities, fixes text for card n adds (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongundel authored Jan 8, 2025
1 parent e8f9a00 commit 05e5cc8
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 35 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function editSectionValue(tileId: string) {
<div v-if="mode === VIEW">
<SchemeReportSection
:title-text="$gettext('Scheme Labels')"
:button-text="$gettext('Add New Scheme Label')"
@open-editor="emits(OPEN_EDITOR)"
>
<MetaStringViewer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const { $gettext } = useGettext();
</script>

<template>
<SchemeReportSection :title-text="$gettext('License')">
<SchemeReportSection
:title-text="$gettext('License')"
:button-text="$gettext('Add New License')"
>
todo
</SchemeReportSection>
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import type {
const toast = useToast();
const { $gettext } = useGettext();
const schemeInstance = ref<SchemeInstance>({});
const exists = ref(false);
const route = useRoute();
const router = useRouter();
Expand Down Expand Up @@ -77,6 +78,9 @@ async function getSectionValue() {
try {
const response = await fetchSchemeNamespace(route.params.id as string);
schemeInstance.value = response;
if (schemeInstance.value.namespace) {
exists.value = true;
}
} catch (error) {
toast.add({
severity: ERROR,
Expand Down Expand Up @@ -110,6 +114,11 @@ function onNamespaceNameUpdate(val: string) {
<div v-if="!mode || mode === VIEW">
<SchemeReportSection
:title-text="$gettext('Scheme Namespace')"
:button-text="
exists
? $gettext('Edit Scheme Namespace')
: $gettext('Add New Scheme Namespace')
"
@open-editor="emit(OPEN_EDITOR)"
>
<NonLocalizedString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function editSectionValue(tileId: string) {
<div v-if="mode === VIEW">
<SchemeReportSection
:title-text="$gettext('Scheme Notes')"
:button-text="$gettext('Add New Scheme Note')"
@open-editor="emits(OPEN_EDITOR)"
>
<MetaStringViewer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<script setup lang="ts">
import { useGettext } from "vue3-gettext";
import Button from "primevue/button";
import { OPEN_EDITOR } from "@/arches_lingo/constants.ts";
defineEmits([OPEN_EDITOR]);
const { $gettext } = useGettext();
const props = defineProps<{
titleText: string;
buttonText: string;
}>();
</script>

Expand All @@ -17,7 +16,7 @@ const props = defineProps<{
<h3>{{ props.titleText }}</h3>
<div>
<Button
:label="$gettext(`Add ${props.titleText}`)"
:label="props.buttonText"
@click="$emit(OPEN_EDITOR)"
></Button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ function onCreationUpdate(val: string[]) {
<div v-if="mode === VIEW">
<SchemeReportSection
:title-text="$gettext('Scheme Standards Followed')"
:button-text="$gettext('Update Scheme Standards')"
@open-editor="emit(OPEN_EDITOR)"
>
<ResourceInstanceRelationships
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions arches_lingo/src/arches_lingo/pages/SchemePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import SchemeLicense from "@/arches_lingo/components/scheme/report/SchemeLicense
import SchemeNote from "@/arches_lingo/components/scheme/report/SchemeNote.vue";
import SchemeNamespace from "@/arches_lingo/components/scheme/report/SchemeNamespace.vue";
import SchemeStandard from "@/arches_lingo/components/scheme/report/SchemeStandard.vue";
import SchemeAuthority from "@/arches_lingo/components/scheme/report/SchemeAuthority.vue";
import SchemeEditor from "@/arches_lingo/components/scheme/editor/SchemeEditor.vue";
import type { SectionTypes } from "@/arches_lingo/types.ts";
Expand Down Expand Up @@ -48,7 +47,6 @@ const onUpdated = () => {
const components = [
{ component: SchemeLabel, id: "label", props: {} },
{ component: SchemeNote, id: "note", props: {} },
{ component: SchemeAuthority, id: "authority", props: {} },
{ component: SchemeStandard, id: "standard", props: {} },
{ component: SchemeLicense, id: "license", props: {} },
{ component: SchemeNamespace, id: "namespace", props: {} },
Expand Down
2 changes: 0 additions & 2 deletions arches_lingo/src/arches_lingo/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import SchemeNamespace from "@/arches_lingo/src/arches_lingo/components/scheme/r
import SchemeLabel from "@/arches_lingo/src/arches_lingo/components/scheme/report/SchemeLabel.vue";
import SchemeLicense from "@/arches_lingo/src/arches_lingo/components/scheme/report/SchemeLicense.vue";
import SchemeStandard from "@/arches_lingo/src/arches_lingo/components/scheme/report/SchemeStandard.vue";
import SchemeAuthority from "@/arches_lingo/src/arches_lingo/components/scheme/report/SchemeAuthority.vue";
import SchemeNote from "@/arches_lingo/src/arches_lingo/components/scheme/report/SchemeNote.vue";

export interface User {
Expand Down Expand Up @@ -74,7 +73,6 @@ export type SectionTypes =
| typeof SchemeNamespace
| typeof SchemeLicense
| typeof SchemeStandard
| typeof SchemeAuthority
| typeof SchemeNote;

export type DataComponentMode = typeof EDIT | typeof VIEW;
Expand Down

0 comments on commit 05e5cc8

Please sign in to comment.