diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 11:17:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 11:17:02 +0300 |
commit | b39512ed755239198a9c294b6a45e65c05900235 (patch) | |
tree | d234a3efade1de67c46b9e5a38ce813627726aa7 /app/assets/javascripts/cycle_analytics/components/base.vue | |
parent | d31474cf3b17ece37939d20082b07f6657cc79a9 (diff) |
Add latest changes from gitlab-org/gitlab@15-3-stable-eev15.3.0-rc42
Diffstat (limited to 'app/assets/javascripts/cycle_analytics/components/base.vue')
-rw-r--r-- | app/assets/javascripts/cycle_analytics/components/base.vue | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/assets/javascripts/cycle_analytics/components/base.vue b/app/assets/javascripts/cycle_analytics/components/base.vue index 1883030e51f..f06544f50c6 100644 --- a/app/assets/javascripts/cycle_analytics/components/base.vue +++ b/app/assets/javascripts/cycle_analytics/components/base.vue @@ -47,15 +47,13 @@ export default { 'selectedStage', 'selectedStageEvents', 'selectedStageError', - 'stages', - 'summary', - 'permissions', 'stageCounts', 'endpoints', 'features', 'createdBefore', 'createdAfter', 'pagination', + 'hasNoAccessError', ]), ...mapGetters(['pathNavigationData', 'filterParams']), isLoaded() { @@ -69,9 +67,7 @@ export default { return !this.isLoadingStage && this.isEmptyStage; }, displayNoAccess() { - return ( - !this.isLoadingStage && this.selectedStage?.id && !this.isUserAllowed(this.selectedStage.id) - ); + return !this.isLoadingStage && this.hasNoAccessError; }, displayPathNavigation() { return this.isLoading || (this.selectedStage && this.pathNavigationData.length); @@ -137,10 +133,6 @@ export default { this.isOverviewDialogDismissed = true; setCookie(OVERVIEW_DIALOG_COOKIE, '1'); }, - isUserAllowed(id) { - const { permissions } = this; - return Boolean(permissions?.[id]); - }, onHandleUpdatePagination(data) { this.updateStageTablePagination(data); }, |