refactor: sandbox to managed app remaining

This commit is contained in:
mertmit
2026-01-23 08:34:16 +00:00
parent 4256e89a99
commit c541ab3a3e
17 changed files with 224 additions and 212 deletions

View File

@@ -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>