From c07416b3d0b1772d6e00e26be92eb89fea1ddc57 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 6 Jun 2024 16:14:00 +0800 Subject: Fix Activity Page Contributors dropdown (#31264) (#31269) Backport #31264 by wxiaoguang Fix #31261 Co-authored-by: wxiaoguang --- web_src/js/components/RepoContributors.vue | 21 ++++++++++----------- web_src/js/features/contributors.js | 1 + 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'web_src') diff --git a/web_src/js/components/RepoContributors.vue b/web_src/js/components/RepoContributors.vue index f7b05831e0..dec2599c0d 100644 --- a/web_src/js/components/RepoContributors.vue +++ b/web_src/js/components/RepoContributors.vue @@ -23,8 +23,6 @@ import {sleep} from '../utils.js'; import 'chartjs-adapter-dayjs-4/dist/chartjs-adapter-dayjs-4.esm'; import $ from 'jquery'; -const {pageData} = window.config; - const customEventListener = { id: 'customEventListener', afterEvent: (chart, args, opts) => { @@ -59,14 +57,17 @@ export default { type: Object, required: true, }, + repoLink: { + type: String, + required: true, + }, }, data: () => ({ isLoading: false, errorText: '', totalStats: {}, sortedContributors: {}, - repoLink: pageData.repoLink || [], - type: pageData.contributionType, + type: 'commits', contributorsStats: [], xAxisStart: null, xAxisEnd: null, @@ -333,19 +334,17 @@ export default {