diff options
Diffstat (limited to 'app/assets/javascripts/registry/explorer/stores/getters.js')
-rw-r--r-- | app/assets/javascripts/registry/explorer/stores/getters.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/registry/explorer/stores/getters.js b/app/assets/javascripts/registry/explorer/stores/getters.js index 1136257a024..a371d0e6356 100644 --- a/app/assets/javascripts/registry/explorer/stores/getters.js +++ b/app/assets/javascripts/registry/explorer/stores/getters.js @@ -18,3 +18,7 @@ export const dockerLoginCommand = state => { /* eslint-disable @gitlab/require-i18n-strings */ return `docker login ${state.config.registryHostUrlWithPort}`; }; + +export const showGarbageCollection = state => { + return state.showGarbageCollectionTip && state.config.isAdmin; +}; |