mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-11 20:27:43 +02:00
Show version as column (#10344)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { MasterTag } from '@hcengineering/card'
|
||||
import { TypeNumber } from '@hcengineering/model'
|
||||
import { getEmbeddedLabel, translateCB } from '@hcengineering/platform'
|
||||
import { getClient, IconWithEmoji, MessageBox } from '@hcengineering/presentation'
|
||||
import setting from '@hcengineering/setting'
|
||||
@@ -115,6 +116,15 @@
|
||||
await client.createMixin(masterTag._id, masterTag._class, masterTag.space, core.mixin.VersionableClass, {
|
||||
enabled: true
|
||||
})
|
||||
await client.createDoc(core.class.Attribute, core.space.Model, {
|
||||
attributeOf: masterTag._id,
|
||||
_class: core.class.Attribute,
|
||||
isCustrom: false,
|
||||
label: core.string.Version,
|
||||
name: 'version',
|
||||
readonly: true,
|
||||
type: TypeNumber()
|
||||
})
|
||||
versioningEnabled = true
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user