File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ pin = Pin
122122unpin = Unpin
123123
124124artifacts = Artifacts
125+ artifact_delete_confirm = Are you sure?
125126
126127archived = Archived
127128
Original file line number Diff line number Diff line change @@ -25,10 +25,7 @@ func CleanupArtifacts(taskCtx context.Context) error {
2525 if err := cleanExpiredArtifacts (taskCtx ); err != nil {
2626 return err
2727 }
28- if err := cleanNeedDeleteArtifacts (taskCtx ); err != nil {
29- return err
30- }
31- return nil
28+ return cleanNeedDeleteArtifacts (taskCtx )
3229}
3330
3431func cleanExpiredArtifacts (taskCtx context.Context ) error {
Original file line number Diff line number Diff line change 1919 data-locale-status-skipped="{{.locale.Tr "actions.status.skipped"}}"
2020 data-locale-status-blocked="{{.locale.Tr "actions.status.blocked"}}"
2121 data-locale-artifacts-title="{{$.locale.Tr "artifacts"}}"
22+ data-locale-artifact-delete-confirm="{{$.locale.Tr "artifact_delete_confirm"}}"
2223 data-locale-show-timestamps="{{.locale.Tr "show_timestamps"}}"
2324 data-locale-show-log-seconds="{{.locale.Tr "show_log_seconds"}}"
2425 data-locale-show-full-screen="{{.locale.Tr "show_full_screen"}}"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import {createApp} from 'vue';
55import {toggleElem } from ' ../utils/dom.js' ;
66import {getCurrentLocale } from ' ../utils.js' ;
77import {renderAnsi } from ' ../render/ansi.js' ;
8- import {POST ,DELETE } from ' ../modules/fetch.js' ;
8+ import {POST , DELETE } from ' ../modules/fetch.js' ;
99
1010const sfc = {
1111 name: ' RepoActionView' ,
@@ -201,10 +201,10 @@ const sfc = {
201201 },
202202
203203 deleteArtifact (name ) {
204- if (! confirm (this .locale .artifactDeleteConfirm )) {
204+ if (! window . confirm (this .locale .artifactDeleteConfirm )) {
205205 return ;
206206 }
207- let link = this .run .link + ' /artifacts/' + name
207+ const link = ` ${ this .run .link } /artifacts/${ name} ` ;
208208 DELETE (link).then (this .loadJob );
209209 },
210210
You can’t perform that action at this time.
0 commit comments