mirror of https://github.com/nocodb/nocodb
Pranav C
2 years ago
3 changed files with 34 additions and 4 deletions
@ -0,0 +1,16 @@ |
|||||||
|
<script setup lang="ts"> |
||||||
|
const loadComments = async () => { |
||||||
|
const data = await this.$api.utils.commentList({ |
||||||
|
row_id: this.meta.columns |
||||||
|
.filter((c) => c.pk) |
||||||
|
.map((c) => this.localState[c.title]) |
||||||
|
.join('___'), |
||||||
|
fk_model_id: this.meta.id, |
||||||
|
comments_only: this.commentsOnly, |
||||||
|
}) |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<template></template> |
||||||
|
|
||||||
|
<style scoped></style> |
@ -0,0 +1,16 @@ |
|||||||
|
import { useInjectionState, } from '#imports' |
||||||
|
|
||||||
|
const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState(() => { |
||||||
|
|
||||||
|
},'expanded-form-store') |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export { useProvideExpandedFormStore } |
||||||
|
|
||||||
|
export function useExpandedFormStoreOrThrow() { |
||||||
|
const expandedFormStore = useExpandedFormStore() |
||||||
|
if (expandedFormStore == null) throw new Error('Please call `useExpandedFormStore` on the appropriate parent component') |
||||||
|
return expandedFormStore |
||||||
|
} |
Loading…
Reference in new issue