mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-11 12:17:44 +02:00
EQMS-1451/1453/1455: reference tweaks for QMS documents (#8083)
* EQMS-1451/1453/1455: reference tweaks for QMS documents Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com> * fmt Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com> --------- Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
+4
-2
@@ -15,14 +15,15 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import documents, { Document } from '@hcengineering/controlled-documents'
|
||||
import documents, { ControlledDocument } from '@hcengineering/controlled-documents'
|
||||
import presentation, { createQuery, getClient } from '@hcengineering/presentation'
|
||||
import { Button, EditBox, Label } from '@hcengineering/ui'
|
||||
|
||||
import IconWarning from '../../icons/IconWarning.svelte'
|
||||
import documentsRes from '../../../plugin'
|
||||
import { syncDocumentMetaTitle } from '../../../utils'
|
||||
|
||||
export let object: Document
|
||||
export let object: ControlledDocument
|
||||
|
||||
const client = getClient()
|
||||
const dispatch = createEventDispatcher()
|
||||
@@ -59,6 +60,7 @@
|
||||
}
|
||||
|
||||
await client.update(object, { code })
|
||||
await syncDocumentMetaTitle(client, object.attachedTo, code, object.title)
|
||||
dispatch('close')
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user