File tree 4 files changed +6
-7
lines changed
4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ pin = Pin
122
122
unpin = Unpin
123
123
124
124
artifacts = Artifacts
125
+ artifact_delete_confirm = Are you sure?
125
126
126
127
archived = Archived
127
128
Original file line number Diff line number Diff line change @@ -25,10 +25,7 @@ func CleanupArtifacts(taskCtx context.Context) error {
25
25
if err := cleanExpiredArtifacts (taskCtx ); err != nil {
26
26
return err
27
27
}
28
- if err := cleanNeedDeleteArtifacts (taskCtx ); err != nil {
29
- return err
30
- }
31
- return nil
28
+ return cleanNeedDeleteArtifacts (taskCtx )
32
29
}
33
30
34
31
func cleanExpiredArtifacts (taskCtx context.Context ) error {
Original file line number Diff line number Diff line change 19
19
data-locale-status-skipped="{{.locale.Tr "actions.status.skipped"}}"
20
20
data-locale-status-blocked="{{.locale.Tr "actions.status.blocked"}}"
21
21
data-locale-artifacts-title="{{$.locale.Tr "artifacts"}}"
22
+ data-locale-artifact-delete-confirm="{{$.locale.Tr "artifact_delete_confirm"}}"
22
23
data-locale-show-timestamps="{{.locale.Tr "show_timestamps"}}"
23
24
data-locale-show-log-seconds="{{.locale.Tr "show_log_seconds"}}"
24
25
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';
5
5
import {toggleElem } from ' ../utils/dom.js' ;
6
6
import {getCurrentLocale } from ' ../utils.js' ;
7
7
import {renderAnsi } from ' ../render/ansi.js' ;
8
- import {POST ,DELETE } from ' ../modules/fetch.js' ;
8
+ import {POST , DELETE } from ' ../modules/fetch.js' ;
9
9
10
10
const sfc = {
11
11
name: ' RepoActionView' ,
@@ -201,10 +201,10 @@ const sfc = {
201
201
},
202
202
203
203
deleteArtifact (name ) {
204
- if (! confirm (this .locale .artifactDeleteConfirm )) {
204
+ if (! window . confirm (this .locale .artifactDeleteConfirm )) {
205
205
return ;
206
206
}
207
- let link = this .run .link + ' /artifacts/' + name
207
+ const link = ` ${ this .run .link } /artifacts/${ name} ` ;
208
208
DELETE (link).then (this .loadJob );
209
209
},
210
210
You can’t perform that action at this time.
0 commit comments