mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 05:26:53 +00:00
* 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>
39 lines
1.0 KiB
Vue
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>
|