Skip to content

Commit

Permalink
nit #209
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Feb 27, 2025
1 parent b06b351 commit bbef720
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const props = defineProps<{
tileId?: string;
}>();
const isLoading = ref(false);
const isLoading = ref(true);
const tileData = ref<AppellativeStatus[]>([]);
const shouldCreateNewTile = Boolean(props.mode === EDIT && !props.tileId);
Expand All @@ -35,13 +35,11 @@ onMounted(async () => {
props.resourceInstanceId &&
(props.mode === VIEW || !shouldCreateNewTile)
) {
isLoading.value = true;
const sectionValue = await getSectionValue();
tileData.value = sectionValue[props.nodegroupAlias];
isLoading.value = false;
}
isLoading.value = false;
});
async function getSectionValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ const props = defineProps<{
tileId?: string;
}>();
const isLoading = ref(false);
const isLoading = ref(true);
const tileData = ref<SchemeRights>();
const shouldCreateNewTile = Boolean(props.mode === EDIT && !props.tileId);
Expand All @@ -33,8 +32,6 @@ onMounted(async () => {
props.resourceInstanceId &&
(props.mode === VIEW || !shouldCreateNewTile)
) {
isLoading.value = true;
const sectionValue = await getSectionValue();
tileData.value = sectionValue[props.nodegroupAlias];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,14 @@ const props = defineProps<{
const shouldCreateNewTile = Boolean(props.mode === EDIT && !props.tileId);
const isLoading = ref(false);
const isLoading = ref(true);
const tileData = ref<SchemeNamespace | undefined>();
onMounted(async () => {
if (
props.resourceInstanceId &&
(props.mode === VIEW || !shouldCreateNewTile)
) {
isLoading.value = true;
const sectionValue = await getSectionValue();
tileData.value = sectionValue[props.nodegroupAlias];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const props = defineProps<{
tileId?: string;
}>();
const isLoading = ref(false);
const isLoading = ref(true);
const tileData = ref<SchemeStatement[]>([]);
const shouldCreateNewTile = Boolean(props.mode === EDIT && !props.tileId);
Expand All @@ -35,13 +35,11 @@ onMounted(async () => {
props.resourceInstanceId &&
(props.mode === VIEW || !shouldCreateNewTile)
) {
isLoading.value = true;
const sectionValue = await getSectionValue();
tileData.value = sectionValue[props.nodegroupAlias];
isLoading.value = false;
}
isLoading.value = false;
});
async function getSectionValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const props = defineProps<{
tileId?: string;
}>();
const isLoading = ref(false);
const isLoading = ref(true);
const tileData = ref<SchemeCreation>();
const shouldCreateNewTile = Boolean(props.mode === EDIT && !props.tileId);
Expand All @@ -35,8 +35,6 @@ onMounted(async () => {
props.resourceInstanceId &&
(props.mode === VIEW || !shouldCreateNewTile)
) {
isLoading.value = true;
const sectionValue = await getSectionValue();
tileData.value = sectionValue[props.nodegroupAlias];
Expand Down
113 changes: 42 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"arches-dev-dependencies": "archesproject/arches-dev-dependencies#dev/8.0.x"
},
"dependencies": {
"@primevue/forms": "4.3.1",
"@primevue/themes": "4.3.1",
"@primevue/forms": "4.2.5",
"@primevue/themes": "4.2.5",
"arches": "archesproject/arches#dev/8.0.x",
"arches-component-lab": "archesproject/arches-component-lab#main",
"primevue": "4.3.1",
"primevue": "4.2.5",
"vue-router": "4.4.3"
},
"nodeModulesPaths": {},
Expand Down

0 comments on commit bbef720

Please sign in to comment.