Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to allow for a single form per tile #160

Open
wants to merge 3 commits into
base: adg/146-scheme-names
Choose a base branch
from

Conversation

aarongundel
Copy link
Collaborator

Allows for a single editor per tile, removes tabbed interface.

@aarongundel aarongundel force-pushed the adg/154-single-tile-forms branch from 0d8dc76 to 0175346 Compare December 27, 2024 17:20
Copy link
Contributor

@chrabyrd chrabyrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! Just some minor stuff

@@ -26,32 +26,19 @@ defineProps<{
mode?: DataComponentMode;
}>();

defineEmits([OPEN_EDITOR]);
const emit = defineEmits([OPEN_EDITOR, "updated"]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: emits to match the rest of the app

),
});
}
await updateSchemeNamespace(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing error handling?

schemeComponents.find((component) => {
return component.id === newValue.activeTab;
}) || schemeComponents[0];
console.log(currentEditor.value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove console.log

currentEditor.value =
schemeComponents.find((component) => {
return component.id === newValue.activeTab;
}) || schemeComponents[0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this fallback end up being confusing for the user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form save in Scheme/Concept forms should only show & save one form at a time
2 participants