bitwarden-estensione-browser/src/popup/tabs.component.ts

21 lines
460 B
TypeScript
Raw Normal View History

2018-10-03 14:26:46 +02:00
import {
Component,
OnInit,
} from '@angular/core';
import { PopupUtilsService } from './services/popup-utils.service';
2018-04-05 04:59:42 +02:00
@Component({
selector: 'app-tabs',
2018-04-06 17:48:45 +02:00
templateUrl: 'tabs.component.html',
2018-04-05 04:59:42 +02:00
})
2018-10-03 14:26:46 +02:00
export class TabsComponent implements OnInit {
showCurrentTab: boolean = true;
constructor(private popupUtilsService: PopupUtilsService) { }
ngOnInit() {
this.showCurrentTab = !this.popupUtilsService.inPopout(window);
}
}