diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2022-03-17 17:16:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 17:16:15 +0300 |
commit | d5f50163782792ac42122c46d9e73f2e38e9029b (patch) | |
tree | 60900e2182f59df6c8e5d70b53d920a9dd88d5ba /plugins/CoreHome/vue/src | |
parent | 84c2cb1af82dca689480cdcf652afaeb01877d9a (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.ts | 5 |
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); |