]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/app.component.ts
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / app.component.ts
index 363a213d214c296e655606f82e2c4c55a6338c63..6960bb3b225b6af4d97c11a4dafe55bf6cebf3de 100644 (file)
@@ -1,34 +1,10 @@
 import { Component } from '@angular/core';
-import { Router } from '@angular/router';
-
-import { TooltipConfig } from 'ngx-bootstrap/tooltip';
-
-import { AuthStorageService } from './shared/services/auth-storage.service';
 
 @Component({
   selector: 'cd-root',
   templateUrl: './app.component.html',
-  styleUrls: ['./app.component.scss'],
-  providers: [
-    {
-      provide: TooltipConfig,
-      useFactory: (): TooltipConfig =>
-        Object.assign(new TooltipConfig(), {
-          container: 'body'
-        })
-    }
-  ]
+  styleUrls: ['./app.component.scss']
 })
 export class AppComponent {
-  title = 'cd';
-
-  constructor(private authStorageService: AuthStorageService, private router: Router) {}
-
-  isLoginActive() {
-    return this.router.url === '/login' || !this.authStorageService.isLoggedIn();
-  }
-
-  isDashboardPage() {
-    return this.router.url === '/dashboard';
-  }
+  constructor() {}
 }