File tree Expand file tree Collapse file tree 2 files changed +14
-22
lines changed Expand file tree Collapse file tree 2 files changed +14
-22
lines changed Original file line number Diff line number Diff line change 3737 <div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{.Duration}}</div>
3838 {{if and (ne .Status 6) (ne .Status 5)}}
3939 <div class="run-list-meta">
40- <button
41- class="ui red tiny button delete-button name"
42- data-modal-id="modal-delete-workflow"
43- data-url="actions/runs/{{.ID}}"
44- data-datarepo_id="{{.RepoID}}"
45- data-name="Delete workflow run {{.ID}}"
46- data-method="delete"
47- name="Delete Workflow {{.ID}}">Delete Workflow
48- </button>
49- </div>
50- {{end}}
40+ <button class="ui red tiny button delete-button name" data-modal-id="modal-delete-workflow" data-url="actions/runs/{{.ID}}" data-name="Delete workflow run {{.ID}}" data-method="delete" name="Delete Workflow {{.ID}}">Delete Workflow</button>
41+ </div>
42+ {{end}}
5143 </div>
5244 </div>
5345 </div>
5446 {{end}}
5547</div>
5648
5749<div class="ui g-modal-confirm delete modal" id="modal-delete-workflow">
58- <div class="header">
59- <i class="trash icon"></i>
60- <span class="name"></span>
61- </div>
62- <div class="content">
63- <p>Are you sure you want to permanently delete this workflow run? This action cannot be undone.</p>
64- </div>
65- {{template "base/modal_actions_confirm" .}}
50+ <div class="header">
51+ <i class="trash icon"></i>
52+ <span class="name"></span>
53+ </div>
54+ <div class="content">
55+ <p>Are you sure you want to permanently delete this workflow run? This action cannot be undone.</p>
56+ </div>
57+ {{template "base/modal_actions_confirm" .}}
6658</div>
6759{{template "base/paginate" .}}
Original file line number Diff line number Diff line change @@ -63,9 +63,9 @@ export function initGlobalDeleteButton(): void {
6363 }
6464
6565 const method = btn . getAttribute ( 'data-method' ) ?. toUpperCase ( ) || 'POST' ;
66- const response = method === 'DELETE'
67- ? await DELETE ( btn . getAttribute ( 'data-url' ) )
68- : await POST ( btn . getAttribute ( 'data-url' ) , { data : postData } ) ;
66+ const response = method === 'DELETE' ?
67+ await DELETE ( btn . getAttribute ( 'data-url' ) ) :
68+ await POST ( btn . getAttribute ( 'data-url' ) , { data : postData } ) ;
6969 if ( response . ok ) {
7070 const data = await response . json ( ) ;
7171 window . location . href = data . redirect ;
You can’t perform that action at this time.
0 commit comments