File tree Expand file tree Collapse file tree 5 files changed +13
-1
lines changed Expand file tree Collapse file tree 5 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export function useClient() {
68
68
body : payload . body ,
69
69
discussion : payload . discussion ,
70
70
choices : payload . choices ,
71
- labels : [ ] ,
71
+ labels : payload . labels ,
72
72
plugins : JSON . stringify ( plugins )
73
73
} ) ;
74
74
} else if ( type === 'vote' ) {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ interface ProposalForm {
9
9
body : string ;
10
10
discussion : string ;
11
11
choices : { key : number ; text : string } [ ] ;
12
+ labels : string [ ] ;
12
13
start : number ;
13
14
end : number ;
14
15
snapshot : number ;
@@ -29,6 +30,7 @@ const EMPTY_PROPOSAL: ProposalForm = {
29
30
{ key : 0 , text : '' } ,
30
31
{ key : 1 , text : '' }
31
32
] ,
33
+ labels : [ ] ,
32
34
start : parseInt ( ( Date . now ( ) / 1e3 ) . toFixed ( ) ) ,
33
35
end : 0 ,
34
36
snapshot : 0 ,
@@ -60,6 +62,7 @@ export function useFormSpaceProposal({ spaceType = 'default' } = {}) {
60
62
name : string ;
61
63
body : string ;
62
64
choices : { key : number ; text : string } [ ] ;
65
+ labels : string [ ] ;
63
66
isBodySet : boolean ;
64
67
} > ( `snapshot.proposal.${ route . params . key } ` , clone ( EMPTY_PROPOSAL_DRAFT ) ) ;
65
68
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const DEFAULT_DELEGATION = {
16
16
const EMPTY_SPACE_FORM = {
17
17
strategies : [ ] ,
18
18
categories : [ ] ,
19
+ labels : [ ] ,
19
20
treasuries : [ ] ,
20
21
admins : [ ] ,
21
22
moderators : [ ] ,
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ export const PROPOSAL_QUERY = gql`
46
46
body
47
47
discussion
48
48
choices
49
+ labels
49
50
start
50
51
end
51
52
snapshot
@@ -460,6 +461,12 @@ export const SPACE_QUERY = gql`
460
461
moderators
461
462
members
462
463
categories
464
+ labels {
465
+ id
466
+ name
467
+ description
468
+ color
469
+ }
463
470
plugins
464
471
followersCount
465
472
template
Original file line number Diff line number Diff line change @@ -298,6 +298,7 @@ function setSourceProposal(proposal) {
298
298
body: proposal .body ,
299
299
discussion: proposal .discussion ,
300
300
choices: proposal .choices ,
301
+ labels: proposal .labels ,
301
302
start: proposal .start ,
302
303
end: proposal .end ,
303
304
snapshot: proposal .snapshot ,
You can’t perform that action at this time.
0 commit comments