ATS-9: update states once template updates (#3496)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov
2023-07-13 10:01:28 +06:00
committed by GitHub
parent f21750a20d
commit 9a7f75c1ed
14 changed files with 203 additions and 67 deletions
+10 -3
View File
@@ -45,7 +45,9 @@ export interface DocWithRank extends Doc {
/**
* @public
*/
export interface SpaceWithStates extends Space {}
export interface SpaceWithStates extends Space {
templateId?: Ref<KanbanTemplate>
}
// S T A T E
@@ -123,12 +125,16 @@ export interface Sequence extends Doc {
/**
* @public
*/
export interface StateTemplate extends AttachedDoc, State {}
export interface StateTemplate extends Doc, State {
attachedTo: Ref<KanbanTemplate>
}
/**
* @public
*/
export interface DoneStateTemplate extends AttachedDoc, DoneState {}
export interface DoneStateTemplate extends Doc, DoneState {
attachedTo: Ref<KanbanTemplate>
}
/**
* @public
@@ -159,6 +165,7 @@ export interface KanbanTemplateSpace extends Space {
description: IntlString
icon: AnyComponent
editor?: AnyComponent
attachedToClass: Ref<Class<Doc>>
}
/**