diff --git a/app/assets/javascripts/packages_and_registries/settings/project/components/container_protection_rules.vue b/app/assets/javascripts/packages_and_registries/settings/project/components/container_protection_rules.vue index 4ffd1e6085c9d08d6ebefd06c65ca87b229ac80c..51ae5b93f3ae749817966d826c3e204958f5fbce 100644 --- a/app/assets/javascripts/packages_and_registries/settings/project/components/container_protection_rules.vue +++ b/app/assets/javascripts/packages_and_registries/settings/project/components/container_protection_rules.vue @@ -2,6 +2,7 @@ import { GlAlert, GlCard, + GlIcon, GlTable, GlLoadingIcon, GlKeysetPagination, @@ -30,6 +31,7 @@ export default { components: { GlAlert, GlCard, + GlIcon, GlKeysetPagination, GlLoadingIcon, GlTable, @@ -91,6 +93,9 @@ export default { protectionRulesQueryResult() { return this.protectionRulesQueryPayload.nodes; }, + protectionRulesQueryResultCount() { + return this.protectionRulesQueryResult.length; + }, isLoadingprotectionRules() { return this.$apollo.queries.protectionRulesQueryPayload.loading; }, @@ -180,7 +185,13 @@ export default { > 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 { >