Browse Source
* Move about.component into tools ownership * Split out account security settings Move settings.component.ts to auth/popup/settings and rename to account-security.component.ts Move controls from settings.component.html and create account-security.component.html Move settings.component.html to tools/popup/settings.component.html Create settings.component.ts under tools/popup/settings Fixup module imports and routing Add new strings to en/message.json * Move vault-timeout-input.component to auth * Move await-desktop-dialog.component to auth * Move folder.component to vault/popup/settings * Move sync.component to vault/popup/settings * Create vault settings component Move controls from settings.component.html to vault-settings.component.html Register VaultSettingsComponent within app.module Register route for VaultSettingsComponent Add new string in en/messages.json * Fix routing for back navigation on child pages of vault settings * Add transitions to vault-settings sub-pages * Add transition for account-security * Add an await to popping out the extension * Use "Vault" instead of "Vault settings" as title --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>5019
12 changed files with 112 additions and 47 deletions
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
<header> |
||||
<div class="left"> |
||||
<button type="button" routerLink="/tabs/settings"> |
||||
<button type="button" routerLink="/vault-settings"> |
||||
<span class="header-icon"><i class="bwi bwi-angle-left" aria-hidden="true"></i></span> |
||||
<span>{{ "back" | i18n }}</span> |
||||
</button> |
||||
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
<header> |
||||
<div class="left"> |
||||
<button type="button" routerLink="/tabs/settings"> |
||||
<button type="button" routerLink="/vault-settings"> |
||||
<span class="header-icon"><i class="bwi bwi-angle-left" aria-hidden="true"></i></span> |
||||
<span>{{ "back" | i18n }}</span> |
||||
</button> |
||||
@ -0,0 +1,56 @@
@@ -0,0 +1,56 @@
|
||||
<app-header> |
||||
<div class="left"> |
||||
<button type="button" routerLink="/tabs/settings"> |
||||
<span class="header-icon"><i class="bwi bwi-angle-left" aria-hidden="true"></i></span> |
||||
<span>{{ "back" | i18n }}</span> |
||||
</button> |
||||
</div> |
||||
<h1 class="center"> |
||||
<span class="title">{{ "vault" | i18n }}</span> |
||||
</h1> |
||||
<div class="right"> |
||||
<app-pop-out></app-pop-out> |
||||
</div> |
||||
</app-header> |
||||
<main tabindex="-1"> |
||||
<div class="box list"> |
||||
<div class="box-content single-line"> |
||||
<button |
||||
type="button" |
||||
class="box-content-row box-content-row-flex text-default" |
||||
routerLink="/folders" |
||||
> |
||||
<div class="row-main">{{ "folders" | i18n }}</div> |
||||
<i class="bwi bwi-angle-right bwi-lg row-sub-icon" aria-hidden="true"></i> |
||||
</button> |
||||
<button |
||||
type="button" |
||||
class="box-content-row box-content-row-flex text-default" |
||||
appStopClick |
||||
(click)="import()" |
||||
> |
||||
<div class="row-main">{{ "importItems" | i18n }}</div> |
||||
<i |
||||
class="bwi bwi-external-link bwi-lg row-sub-icon bwi-rotate-270 bwi-fw" |
||||
aria-hidden="true" |
||||
></i> |
||||
</button> |
||||
<button |
||||
type="button" |
||||
class="box-content-row box-content-row-flex text-default" |
||||
routerLink="/export" |
||||
> |
||||
<div class="row-main">{{ "exportVault" | i18n }}</div> |
||||
<i class="bwi bwi-angle-right bwi-lg row-sub-icon" aria-hidden="true"></i> |
||||
</button> |
||||
<button |
||||
type="button" |
||||
class="box-content-row box-content-row-flex text-default" |
||||
routerLink="/sync" |
||||
> |
||||
<div class="row-main">{{ "sync" | i18n }}</div> |
||||
<i class="bwi bwi-angle-right bwi-lg row-sub-icon" aria-hidden="true"></i> |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</main> |
||||
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
import { Component } from "@angular/core"; |
||||
import { Router } from "@angular/router"; |
||||
|
||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service"; |
||||
|
||||
import { BrowserApi } from "../../../platform/browser/browser-api"; |
||||
import BrowserPopupUtils from "../../../platform/popup/browser-popup-utils"; |
||||
|
||||
@Component({ |
||||
selector: "vault-settings", |
||||
templateUrl: "vault-settings.component.html", |
||||
}) |
||||
export class VaultSettingsComponent { |
||||
constructor( |
||||
public messagingService: MessagingService, |
||||
private router: Router, |
||||
) {} |
||||
|
||||
async import() { |
||||
await this.router.navigate(["/import"]); |
||||
if (await BrowserApi.isPopupOpen()) { |
||||
await BrowserPopupUtils.openCurrentPagePopout(window); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue