summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/registry/explorer/stores/getters.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/registry/explorer/stores/getters.js')
-rw-r--r--app/assets/javascripts/registry/explorer/stores/getters.js4
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;
+};