mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 14:26:43 +00:00
refactor: sandbox to managed app remaining
This commit is contained in:
@@ -11,7 +11,7 @@ interface Props {
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {})
|
||||
|
||||
const emit = defineEmits(['update:aiMode', 'update:mode', 'sandboxInstalled', 'close'])
|
||||
const emit = defineEmits(['update:aiMode', 'update:mode', 'managedAppInstalled', 'close'])
|
||||
|
||||
const aiMode = useVModel(props, 'aiMode', emit)
|
||||
|
||||
@@ -48,9 +48,9 @@ const selectMode = (mode: CreateMode) => {
|
||||
emit('update:mode', mode)
|
||||
}
|
||||
|
||||
const onSandboxInstalled = (sandbox: any) => {
|
||||
const onManagedAppInstalled = (managedApp: any) => {
|
||||
showAppMarket.value = false
|
||||
emit('sandboxInstalled', sandbox)
|
||||
emit('managedAppInstalled', managedApp)
|
||||
}
|
||||
|
||||
const onAppMarketClose = () => {
|
||||
@@ -93,7 +93,7 @@ onMounted(() => {
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-if="isFeatureEnabled(FEATURE_FLAG.SANDBOXES)"
|
||||
v-if="isFeatureEnabled(FEATURE_FLAG.MANAGED_APPS)"
|
||||
v-e="['c:base:market:create']"
|
||||
class="nc-create-base-market"
|
||||
@click="selectMode('market')"
|
||||
@@ -115,7 +115,7 @@ onMounted(() => {
|
||||
v-if="showAppMarket && workspaceId"
|
||||
:workspace-id="workspaceId"
|
||||
@close="onAppMarketClose"
|
||||
@installed="onSandboxInstalled"
|
||||
@installed="onManagedAppInstalled"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user