Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: add base selector input in managed app modal

Ramesh Maneea71cdc6a488
diff --git a/packages/nc-gui/components/workspace/project/create/ManagedApp.vue b/packages/nc-gui/components/workspace/project/create/ManagedApp.vue
index 4e032ae95d..6cc1347ad5 100644
--- a/packages/nc-gui/components/workspace/project/create/ManagedApp.vue
+++ b/packages/nc-gui/components/workspace/project/create/ManagedApp.vue
@@ -87,6 +87,38 @@ const { formState, isLoading, submit } = useProvideFormBuilderHelper({
placeholder: "Describe your application's capabilities",
category: FORM_BUILDER_NON_CATEGORIZED,
},
+ {
+ type: FormBuilderInputType.Select,
+ label: 'Start from',
+ span: 12,
+ model: 'startFrom',
+ category: FORM_BUILDER_NON_CATEGORIZED,
+ options: [
+ { label: 'New', value: 'new', icon: 'plus' },
+ { label: 'Existing Base', value: 'existing', icon: 'copy' },
+ ],
+ defaultValue: 'new',
+ },
+ {
+ type: FormBuilderInputType.Space,
+ span: 12,
+ category: FORM_BUILDER_NON_CATEGORIZED,
+ condition: {
+ model: 'startFrom',
+ equal: 'new',
+ },
+ },
+ {
+ type: FormBuilderInputType.SelectBase,
+ label: 'Select base',
+ span: 12,
+ model: 'baseId',
+ category: FORM_BUILDER_NON_CATEGORIZED,
+ condition: {
+ model: 'startFrom',
+ equal: 'existing',
+ },
+ },
{
type: FormBuilderInputType.Input,
label: t('labels.sandboxCategory'),