-
{{ $options.i18n.settingBlockTitle }}
+
+ {{ $options.i18n.settingBlockTitle }}
+
+
+ {{ protectionRulesQueryResultCount }}
+
+
diff --git a/app/assets/javascripts/packages_and_registries/settings/project/components/packages_protection_rules.vue b/app/assets/javascripts/packages_and_registries/settings/project/components/packages_protection_rules.vue
index 4522b37572d9bfedcf92f22773bd0f895b2d6405..88fde9438187a5b084374db2d346d1398bd57b58 100644
--- a/app/assets/javascripts/packages_and_registries/settings/project/components/packages_protection_rules.vue
+++ b/app/assets/javascripts/packages_and_registries/settings/project/components/packages_protection_rules.vue
@@ -3,6 +3,7 @@ import {
GlAlert,
GlButton,
GlCard,
+ GlIcon,
GlTable,
GlLoadingIcon,
GlKeysetPagination,
@@ -29,6 +30,7 @@ export default {
SettingsBlock,
GlButton,
GlCard,
+ GlIcon,
GlAlert,
GlTable,
GlLoadingIcon,
@@ -82,6 +84,9 @@ export default {
packageProtectionRulesQueryResult() {
return this.packageProtectionRulesQueryPayload.nodes;
},
+ packageProtectionRulesQueryResultCount() {
+ return this.packageProtectionRulesQueryResult.length;
+ },
isLoadingPackageProtectionRules() {
return this.$apollo.queries.packageProtectionRulesQueryPayload.loading;
},
@@ -269,7 +274,13 @@ export default {
>