commit | 6a3c13b4c8b68803e368a77ff63b425cf4c31692 | [log] [tgz] |
---|---|---|
author | Alon Bar-Lev <alon.barlev@gmail.com> | Thu Aug 25 17:39:15 2022 +0300 |
committer | Alon Bar-Lev <alon.barlev@gmail.com> | Thu Aug 25 17:44:59 2022 +0300 |
tree | d3358f6e2fc79f8740df8de3b10f0cdd92049810 | |
parent | 037c9a18ab3f702fc22bd4bb9c24bc65eeb416c9 [diff] |
replace deprecated page object in frontend page object is no longer global, direct old use of window.location.href is the new method. Change-Id: Idb47cf9fd5eb776ee0be33949bec816fad45ba35
diff --git a/gr-serviceuser/gr-serviceuser-create.js b/gr-serviceuser/gr-serviceuser-create.js index 4ca98d9..fa5144b 100644 --- a/gr-serviceuser/gr-serviceuser-create.js +++ b/gr-serviceuser/gr-serviceuser-create.js
@@ -71,10 +71,7 @@ } _forwardToDetails() { - page.show( - this.plugin.screenUrl() - + '/user/' - + this._accountId); + window.location.href = `${this.plugin.screenUrl()}/user/${this._accountId}`; } _getConfig() {
diff --git a/gr-serviceuser/gr-serviceuser-list.js b/gr-serviceuser/gr-serviceuser-list.js index a8315bc..b579164 100644 --- a/gr-serviceuser/gr-serviceuser-list.js +++ b/gr-serviceuser/gr-serviceuser-list.js
@@ -126,7 +126,7 @@ } _createNewServiceUser() { - page.show(this.plugin.screenUrl() + '/create'); + window.location.href = `${this.plugin.screenUrl()}/create`; } }