mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-14 11:24:06 +00:00
Fix format
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
d5cba62947
commit
6eda85c56d
@ -137,7 +137,7 @@ export function createModel (builder: Builder): void {
|
|||||||
|
|
||||||
builder.createDoc(activity.class.ActivityExtension, core.space.Model, {
|
builder.createDoc(activity.class.ActivityExtension, core.space.Model, {
|
||||||
ofClass: survey.class.Poll,
|
ofClass: survey.class.Poll,
|
||||||
components: { input: chunter.component.ChatMessageInput }
|
components: { input: { component: chunter.component.ChatMessageInput } }
|
||||||
})
|
})
|
||||||
|
|
||||||
builder.mixin(survey.class.Poll, core.class.Class, view.mixin.CollectionEditor, {
|
builder.mixin(survey.class.Poll, core.class.Class, view.mixin.CollectionEditor, {
|
||||||
|
@ -72,9 +72,6 @@
|
|||||||
|
|
||||||
async function updateDataProvider (attachedTo: Ref<Doc>, selectedMessageId?: Ref<ActivityMessage>): Promise<void> {
|
async function updateDataProvider (attachedTo: Ref<Doc>, selectedMessageId?: Ref<ActivityMessage>): Promise<void> {
|
||||||
if (dataProvider === undefined) {
|
if (dataProvider === undefined) {
|
||||||
// For now loading all messages for documents with activity. Need to correct handle aggregation with pagination.
|
|
||||||
// Perhaps we should load all activity messages once, and keep loading in chunks only for ChatMessages then merge them correctly with activity messages
|
|
||||||
const loadAll = isDocChannel
|
|
||||||
const ctx =
|
const ctx =
|
||||||
context ??
|
context ??
|
||||||
(await client.findOne(notification.class.DocNotifyContext, {
|
(await client.findOne(notification.class.DocNotifyContext, {
|
||||||
@ -90,7 +87,7 @@
|
|||||||
attachedTo,
|
attachedTo,
|
||||||
activity.class.ActivityMessage,
|
activity.class.ActivityMessage,
|
||||||
selectedMessageId,
|
selectedMessageId,
|
||||||
loadAll,
|
false,
|
||||||
hasRefs,
|
hasRefs,
|
||||||
collection
|
collection
|
||||||
)
|
)
|
||||||
@ -112,7 +109,7 @@
|
|||||||
provider={dataProvider}
|
provider={dataProvider}
|
||||||
{freeze}
|
{freeze}
|
||||||
{autofocus}
|
{autofocus}
|
||||||
loadMoreAllowed={!isDocChannel}
|
loadMoreAllowed
|
||||||
{withInput}
|
{withInput}
|
||||||
{readonly}
|
{readonly}
|
||||||
{onReply}
|
{onReply}
|
||||||
|
@ -152,7 +152,6 @@
|
|||||||
|
|
||||||
return _id !== meetingMinutes._id
|
return _id !== meetingMinutes._id
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="antiPopup room-popup">
|
<div class="antiPopup room-popup">
|
||||||
|
Loading…
Reference in New Issue
Block a user