Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2022-03-17 17:16:15 +0300
committerGitHub <noreply@github.com>2022-03-17 17:16:15 +0300
commitd5f50163782792ac42122c46d9e73f2e38e9029b (patch)
tree60900e2182f59df6c8e5d70b53d920a9dd88d5ba /plugins/CoreHome/vue/src
parent84c2cb1af82dca689480cdcf652afaeb01877d9a (diff)
[Vue] migrate custom dimension management (#18926)
* more migration work * get new code to work * make sure chunk assets can be removed * look over/remove todos * apply pr review fixes * Update plugins/CustomDimensions/lang/en.json Co-authored-by: Stefan Giehl <stefan@matomo.org> * apply review feedback * actual fix Co-authored-by: Stefan Giehl <stefan@matomo.org>
Diffstat (limited to 'plugins/CoreHome/vue/src')
-rw-r--r--plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.ts b/plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.ts
index e8f1cb0ed3..9ab1dc54aa 100644
--- a/plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.ts
+++ b/plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.ts
@@ -61,6 +61,11 @@ class MatomoUrl {
this.updatePeriodParamsFromUrl();
}
+ updateHashToUrl(url: string) {
+ const $location: ILocationService = Matomo.helper.getAngularDependency('$location');
+ $location.url(url);
+ }
+
updateHash(params: QueryParameters|string) {
const modifiedParams = this.getFinalHashParams(params);
const serializedParams = this.stringify(modifiedParams);