File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,14 @@ func NewRelease(ctx *context.Context) {
328
328
}
329
329
}
330
330
ctx .Data ["IsAttachmentEnabled" ] = setting .Attachment .Enabled
331
+ var err error
332
+ // Get assignees.
333
+ ctx .Data ["Assignees" ], err = repo_model .GetRepoAssignees (ctx , ctx .Repo .Repository )
334
+ if err != nil {
335
+ ctx .ServerError ("GetAssignees" , err )
336
+ return
337
+ }
338
+
331
339
upload .AddUploadContext (ctx , "release" )
332
340
ctx .HTML (http .StatusOK , tplReleaseNew )
333
341
}
@@ -484,6 +492,13 @@ func EditRelease(ctx *context.Context) {
484
492
}
485
493
ctx .Data ["attachments" ] = rel .Attachments
486
494
495
+ // Get assignees.
496
+ ctx .Data ["Assignees" ], err = repo_model .GetRepoAssignees (ctx , rel .Repo )
497
+ if err != nil {
498
+ ctx .ServerError ("GetAssignees" , err )
499
+ return
500
+ }
501
+
487
502
ctx .HTML (http .StatusOK , tplReleaseNew )
488
503
}
489
504
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ export function initRepoRelease() {
17
17
export function initRepoReleaseEditor ( ) {
18
18
const $editor = $ ( '.repository.new.release .content-editor' ) ;
19
19
if ( $editor . length === 0 ) {
20
- return false ;
20
+ return ;
21
21
}
22
22
23
23
( async ( ) => {
24
24
const $textarea = $editor . find ( 'textarea' ) ;
25
- await attachTribute ( $textarea . get ( ) , { mentions : false , emoji : true } ) ;
25
+ await attachTribute ( $textarea . get ( ) , { mentions : true , emoji : true } ) ;
26
26
const easyMDE = await createCommentEasyMDE ( $textarea ) ;
27
27
initCompMarkupContentPreviewTab ( $editor ) ;
28
28
const $dropzone = $editor . parent ( ) . find ( '.dropzone' ) ;
You can’t perform that action at this time.
0 commit comments