Skip to content

Commit

Permalink
Remove v1 popout component (#12518)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
  • Loading branch information
djsmith85 and djsmith85 authored Jan 6, 2025
1 parent ec21e8d commit c349ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<ng-container *ngIf="show && !useRefreshVariant">
<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">
<ng-container *ngIf="show">
<button
bitIconButton="bwi-popout"
size="small"
Expand Down
10 changes: 1 addition & 9 deletions apps/browser/src/platform/popup/components/pop-out.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { CommonModule } from "@angular/common";
import { Component, Input, OnInit } from "@angular/core";

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 { IconButtonModule } from "@bitwarden/components";

Expand All @@ -17,16 +15,10 @@ import BrowserPopupUtils from "../browser-popup-utils";
})
export class PopOutComponent implements OnInit {
@Input() show = true;
useRefreshVariant = false;

constructor(
private platformUtilsService: PlatformUtilsService,
private configService: ConfigService,
) {}
constructor(private platformUtilsService: PlatformUtilsService) {}

async ngOnInit() {
this.useRefreshVariant = await this.configService.getFeatureFlag(FeatureFlag.ExtensionRefresh);

if (this.show) {
if (
(BrowserPopupUtils.inSidebar(window) && this.platformUtilsService.isFirefox()) ||
Expand Down

0 comments on commit c349ea9

Please sign in to comment.