Files
nocodb/packages/nc-gui/components/ai/IntegrationNotFound.vue
Mert E. 6724fd2f9d chore: sync various (#9864)
* chore: sync various

Signed-off-by: mertmit <mertmit99@gmail.com>

* test: ws scope

Signed-off-by: mertmit <mertmit99@gmail.com>

* fix(nc-gui): ncSubmenu right icon visibility issue

* fix(nc-gui): use viewTypeAlias in all the places

---------

Signed-off-by: mertmit <mertmit99@gmail.com>
Co-authored-by: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com>
2024-11-20 21:48:09 +05:30

39 lines
1.0 KiB
Vue

<script lang="ts" setup>
const emits = defineEmits(['onNavigate'])
const workspaceStore = useWorkspace()
const navigateToAiIntegrations = () => {
workspaceStore.navigateToIntegrations(undefined, undefined, {
categories: 'ai',
})
emits('onNavigate')
}
</script>
<template>
<div
class="py-2 pl-3 pr-2 flex gap-2 bg-nc-bg-orange-light rounded-lg"
:class="{
'items-center': !$slots.description,
'items-start': $slots.description,
}"
>
<slot name="icon">
<GeneralIcon icon="alertTriangleSolid" class="flex-none !text-nc-content-orange-medium w-4 h-4" />
</slot>
<div class="flex-1 flex flex-col gap-1">
<slot name="title">
<div class="text-sm text-nc-content-gray-subtle flex-1">No AI Integrations added.</div>
</slot>
<slot name="description"></slot>
</div>
<NcButton size="small" type="text" class="!text-nc-content-brand" @click.stop="navigateToAiIntegrations">
Add integration
</NcButton>
</div>
</template>
<style lang="scss" scoped></style>