Commit 5de83f0 1 parent 7273d6b commit 5de83f0 Copy full SHA for 5de83f0
File tree 2 files changed +6
-5
lines changed
caster-editor/src/components
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,9 @@ import MenuTab from "./MenuTabHeader.vue";
57
57
import MenuTabEdit from " ./MenuTabEdit.vue" ;
58
58
import MenuTabPlay from " ./MenuTabPlay.vue" ;
59
59
import DialogExitGraph from " ./DialogExitGraph.vue" ;
60
+ import type { GraphEdit } from " ./MenuTabEdit.vue" ;
60
61
61
- export type GraphMenu = Pick <Graph , " name" | " uuid" | " slugName" > & {
62
- nodes: Array <any >;
63
- };
62
+ export type GraphMenu = Pick <Graph , " name" | " uuid" | " slugName" > & GraphEdit ;
64
63
65
64
// Props
66
65
defineProps <{
Original file line number Diff line number Diff line change 21
21
</template >
22
22
23
23
<script setup lang="ts">
24
- import type { Graph } from " @/graphql" ;
24
+ import type { Graph , Node } from " @/graphql" ;
25
25
import { useDeleteEdgeMutation , useDeleteNodeMutation } from " @/graphql" ;
26
26
import { useInterfaceStore } from " @/stores/InterfaceStore" ;
27
27
import { ElMessage } from " element-plus" ;
28
28
import { storeToRefs } from " pinia" ;
29
29
import { ref , type Ref } from " vue" ;
30
30
import DialogAddNode from " ./DialogAddNode.vue" ;
31
31
32
- export type GraphEdit = Pick <Graph , " uuid" | " nodes" >;
32
+ export type GraphEdit = Pick <Graph , " uuid" > & {
33
+ nodes: Pick <Node , " uuid" | " isEntryNode" >[];
34
+ };
33
35
34
36
const props = defineProps <{
35
37
graph: GraphEdit ;
You can’t perform that action at this time.
0 commit comments