]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-tabs/rbd-tabs.component.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / rbd-tabs / rbd-tabs.component.ts
index 36923dffc78ffec41bb7509bde907c18cbbdd7bc..056cb1764583c7f3729863cf55796285cc210c42 100644 (file)
@@ -1,27 +1,19 @@
-import { Component, OnInit } from '@angular/core';
+import { Component } from '@angular/core';
 import { Router } from '@angular/router';
 
-import { Permission } from '../../../shared/models/permissions';
-import { AuthStorageService } from '../../../shared/services/auth-storage.service';
+import { Permission } from '~/app/shared/models/permissions';
+import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
 
 @Component({
   selector: 'cd-rbd-tabs',
   templateUrl: './rbd-tabs.component.html',
   styleUrls: ['./rbd-tabs.component.scss']
 })
-export class RbdTabsComponent implements OnInit {
+export class RbdTabsComponent {
   grafanaPermission: Permission;
   url: string;
 
-  constructor(private authStorageService: AuthStorageService, private router: Router) {
+  constructor(private authStorageService: AuthStorageService, public router: Router) {
     this.grafanaPermission = this.authStorageService.getPermissions().grafana;
   }
-
-  ngOnInit() {
-    this.url = this.router.url;
-  }
-
-  navigateTo(url: string) {
-    this.router.navigate([url]);
-  }
 }