diff --git a/tools/cldr-apps/js/src/esm/cldrReport.mjs b/tools/cldr-apps/js/src/esm/cldrReport.mjs index b8f3c47c781..27430b760fc 100644 --- a/tools/cldr-apps/js/src/esm/cldrReport.mjs +++ b/tools/cldr-apps/js/src/esm/cldrReport.mjs @@ -112,7 +112,7 @@ async function getOneLocaleStatus(locale) { `getOneLocaleStatus(${locale}) expected an array of one item but got ${obj.locales.length}` ); } - return obj.locales[0].reports; + return obj.locales[0]; } /** @@ -122,9 +122,9 @@ async function getOneLocaleStatus(locale) { * @returns */ async function getOneReportLocaleStatus(locale, onlyReport) { - const reports = await getOneLocaleStatus(locale); - const myReport = reports.filter(({ report }) => report === onlyReport)[0]; - return myReport; + const { reports, canVote } = await getOneLocaleStatus(locale); + const report = reports.filter(({ report }) => report === onlyReport)[0]; + return { report, canVote }; } /** diff --git a/tools/cldr-apps/js/src/views/ReportResponse.vue b/tools/cldr-apps/js/src/views/ReportResponse.vue index ebde8d50fa7..88f7b1bc7ab 100644 --- a/tools/cldr-apps/js/src/views/ReportResponse.vue +++ b/tools/cldr-apps/js/src/views/ReportResponse.vue @@ -10,7 +10,7 @@ before continuing.
-