From: Avan Thakkar Date: Fri, 7 May 2021 09:38:11 +0000 (+0530) Subject: mgr/dashboard: fix base-href: revert it to previous approach X-Git-Tag: v14.2.21~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71b14f08794e9c3810c24cc035cc010d2f61d453;p=ceph.git mgr/dashboard: fix base-href: revert it to previous approach Fixes: https://tracker.ceph.com/issues/50684 Signed-off-by: Avan Thakkar (cherry picked from commit b6f92922f5c80223fd288d98ce85405a650c0135) Conflicts: src/pybind/mgr/dashboard/frontend/src/app/app.module.ts - Adopt the changes coming from master for this file. (cherry picked from commit 3802683035532bc15d95e16232e69e0fa96c474f) --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/app.module.ts b/src/pybind/mgr/dashboard/frontend/src/app/app.module.ts index 55211e01839..7b63f06b7bd 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/app.module.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/app.module.ts @@ -1,4 +1,3 @@ -import { APP_BASE_HREF } from '@angular/common'; import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'; import { ErrorHandler, @@ -58,10 +57,6 @@ import { environment } from '../environments/environment'; useClass: ApiInterceptorService, multi: true }, - { - provide: APP_BASE_HREF, - useValue: window['base-href'] - }, { provide: TRANSLATIONS, useFactory: (locale) => { diff --git a/src/pybind/mgr/dashboard/frontend/src/index.html b/src/pybind/mgr/dashboard/frontend/src/index.html index 8d5196e35e6..05a8f709116 100644 --- a/src/pybind/mgr/dashboard/frontend/src/index.html +++ b/src/pybind/mgr/dashboard/frontend/src/index.html @@ -3,10 +3,9 @@ Ceph -