mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Remove v1 popout component (#12518)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ec21e8db59
commit
c349ea95c6
@@ -1,9 +1,4 @@
|
|||||||
<ng-container *ngIf="show && !useRefreshVariant">
|
<ng-container *ngIf="show">
|
||||||
<button type="button" (click)="expand()" appA11yTitle="{{ 'popOutNewWindow' | i18n }}">
|
|
||||||
<i class="bwi bwi-external-link bwi-rotate-270 bwi-lg bwi-fw" aria-hidden="true"></i>
|
|
||||||
</button>
|
|
||||||
</ng-container>
|
|
||||||
<ng-container *ngIf="show && useRefreshVariant">
|
|
||||||
<button
|
<button
|
||||||
bitIconButton="bwi-popout"
|
bitIconButton="bwi-popout"
|
||||||
size="small"
|
size="small"
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import { CommonModule } from "@angular/common";
|
|||||||
import { Component, Input, OnInit } from "@angular/core";
|
import { Component, Input, OnInit } from "@angular/core";
|
||||||
|
|
||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
|
||||||
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { IconButtonModule } from "@bitwarden/components";
|
import { IconButtonModule } from "@bitwarden/components";
|
||||||
|
|
||||||
@@ -17,16 +15,10 @@ import BrowserPopupUtils from "../browser-popup-utils";
|
|||||||
})
|
})
|
||||||
export class PopOutComponent implements OnInit {
|
export class PopOutComponent implements OnInit {
|
||||||
@Input() show = true;
|
@Input() show = true;
|
||||||
useRefreshVariant = false;
|
|
||||||
|
|
||||||
constructor(
|
constructor(private platformUtilsService: PlatformUtilsService) {}
|
||||||
private platformUtilsService: PlatformUtilsService,
|
|
||||||
private configService: ConfigService,
|
|
||||||
) {}
|
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.useRefreshVariant = await this.configService.getFeatureFlag(FeatureFlag.ExtensionRefresh);
|
|
||||||
|
|
||||||
if (this.show) {
|
if (this.show) {
|
||||||
if (
|
if (
|
||||||
(BrowserPopupUtils.inSidebar(window) && this.platformUtilsService.isFirefox()) ||
|
(BrowserPopupUtils.inSidebar(window) && this.platformUtilsService.isFirefox()) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user