File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ mod imp {
30
30
pub ( super ) show_view_artifact : Cell < bool > ,
31
31
#[ template_child]
32
32
pub ( super ) status_page : TemplateChild < adw:: StatusPage > ,
33
+ #[ template_child]
34
+ pub ( super ) view_artifact_button : TemplateChild < gtk:: Button > ,
33
35
}
34
36
35
37
#[ glib:: object_subclass]
@@ -183,6 +185,16 @@ impl ActionPage {
183
185
PruneVolumes => gettext ( "Volumes Pruned" ) ,
184
186
_ => unreachable ! ( ) ,
185
187
} ) ;
188
+ imp. view_artifact_button
189
+ . set_label ( & match action. action_type ( ) {
190
+ DownloadImage => gettext ( "View Image" ) ,
191
+ BuildImage => gettext ( "View Image" ) ,
192
+ CreateContainer => gettext ( "View Container" ) ,
193
+ CreateAndRunContainer => gettext ( "View Container" ) ,
194
+ Pod => gettext ( "View Pod" ) ,
195
+ Volume => gettext ( "View Volume" ) ,
196
+ _ => unreachable ! ( ) ,
197
+ } ) ;
186
198
}
187
199
Aborted => {
188
200
imp. status_page . set_title ( & match action. action_type ( ) {
You can’t perform that action at this time.
0 commit comments