File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3939 <div class="ui attached segment">
4040 <div class="flex-list" id="protected-branches-list" data-update-priority-url="{{$.Repository.Link}}/settings/branches/priority">
4141 {{range .ProtectedBranches}}
42- <div class="item" data-id="{{.ID}}">
42+ <div data-id="{{.ID}}">
4343 <div class="flex-item tw-items-center">
4444 <div class="drag-handle tw-cursor-grab">
4545 {{svg "octicon-grabber" 16}}
Original file line number Diff line number Diff line change 11import { createSortable } from '../modules/sortable.ts' ;
22import { POST } from '../modules/fetch.ts' ;
3+ import { showErrorToast } from '../modules/toast.ts' ;
34
45export function initRepoBranchesSettings ( ) {
56 const protectedBranchesList = document . querySelector ( '#protected-branches-list' ) ;
@@ -21,7 +22,8 @@ export function initRepoBranchesSettings() {
2122 } ,
2223 } ) ;
2324 } catch ( err ) {
24- console . error ( 'Failed to update branch protection rule priority:' , err ) ;
25+ const errorMessage = String ( err ) ;
26+ showErrorToast ( `Failed to update branch protection rule priority:, error: ${ errorMessage } ` ) ;
2527 }
2628 } ,
2729 } ) ;
You can’t perform that action at this time.
0 commit comments