From 7765296b168d882029f9f25e444471c45975741d Mon Sep 17 00:00:00 2001 From: Hendrik de Graaf Date: Mon, 29 Jan 2024 13:02:44 +0100 Subject: [PATCH] feat: add class-name for push-analytics (#1241) * feat: add class-name for push-analytics * chore: apply consistent naming to push analytics class-names * chore: upgrade d2-analysis to v33.3.0 --- package.json | 2 +- src/ui/DownloadButtonItems.js | 1 + yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 21c21968..db1d8748 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "homepage": "https://github.com/dhis2/event-reports-app#readme", "dependencies": { - "d2-analysis": "^33.2.28", + "d2-analysis": "^33.3.0", "d2-utilizr": "0.2.13" }, "devDependencies": { diff --git a/src/ui/DownloadButtonItems.js b/src/ui/DownloadButtonItems.js index b8b5f1d8..c766abc1 100644 --- a/src/ui/DownloadButtonItems.js +++ b/src/ui/DownloadButtonItems.js @@ -27,6 +27,7 @@ DownloadButtonItems = function(refs, layout) { { text: 'HTML (.html)', iconCls: 'ns-menu-item-tablelayout', + cls: 'push-analytics-download-as-html-menu-item', handler: function() { uiManager.openTableLayoutTab(layout, 'html+css', true); } diff --git a/yarn.lock b/yarn.lock index 7f0e2601..31a2b534 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1734,10 +1734,10 @@ currently-unhandled@^0.4.1: dependencies: array-find-index "^1.0.1" -d2-analysis@^33.2.28: - version "33.2.28" - resolved "https://registry.yarnpkg.com/d2-analysis/-/d2-analysis-33.2.28.tgz#98a04478091222726a231f268f11b9a61dc5689e" - integrity sha512-brIVNQ5dOgSDACqs/2uDfH7Ro0oOGKAO+GXm0z6NaLrMsVj9aL/VJUkTAJ6bjach+xVoWvLd4U0PPkmyksjtAA== +d2-analysis@^33.3.0: + version "33.3.0" + resolved "https://registry.yarnpkg.com/d2-analysis/-/d2-analysis-33.3.0.tgz#049a2f6768dba638033c3229ce271cd3b7551373" + integrity sha512-hR0nHonqtWJfFs2AyGoqu/MWZFMZHDxkaX0p8uTScAhausaqTzYvn5x29NbuhUGctEb/vlLPzyAoD087qXOEAA== dependencies: "@dhis2/d2-ui-rich-text" "^5.1.0" d2-utilizr "^0.2.16"