2020-03-13 15:44:24 +05:30
< script >
2020-04-22 19:07:51 +05:30
import { GlAlert , GlSprintf , GlLink } from '@gitlab/ui' ;
import { mapState , mapActions , mapGetters } from 'vuex' ;
import { s _ _ } from '~/locale' ;
export default {
components : {
GlAlert ,
GlSprintf ,
GlLink ,
} ,
i18n : {
garbageCollectionTipText : s _ _ (
'ContainerRegistry|This Registry contains deleted image tag data. Remember to run %{docLinkStart}garbage collection%{docLinkEnd} to remove the stale data from storage.' ,
) ,
} ,
computed : {
... mapState ( [ 'config' ] ) ,
... mapGetters ( [ 'showGarbageCollection' ] ) ,
} ,
methods : {
... mapActions ( [ 'setShowGarbageCollectionTip' ] ) ,
} ,
} ;
2020-03-13 15:44:24 +05:30
< / script >
< template >
2020-04-08 14:13:33 +05:30
< div >
2020-04-22 19:07:51 +05:30
< gl-alert
v - if = "showGarbageCollection"
variant = "tip"
class = "my-2"
@ dismiss = "setShowGarbageCollectionTip(false)"
>
< gl-sprintf :message = "$options.i18n.garbageCollectionTipText" >
< template # docLink = "{content}" >
< gl-link :href = "config.garbageCollectionHelpPagePath" target = "_blank" >
{ { content } }
< / gl-link >
< / template >
< / gl-sprintf >
< / gl-alert >
2020-03-13 15:44:24 +05:30
< transition name = "slide" >
2020-04-22 19:07:51 +05:30
< router-view ref = "router-view" / >
2020-03-13 15:44:24 +05:30
< / transition >
< / div >
< / template >