Skip to content

Commit

Permalink
refactor: Homogenize code with merge upstream
Browse files Browse the repository at this point in the history
Removed old unused code
  • Loading branch information
zatteo committed Nov 7, 2024
1 parent 8f79d7e commit 90c2473
Showing 1 changed file with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1 class="sr-only">{{ "myVault" | i18n }}</h1>
></i>
</div>
<div class="right">
<button type="button" appBlurClick (click)="addCipher()" appA11yTitle="{{ 'addItem' | i18n }}">
<button type="button" (click)="addCipher()" appA11yTitle="{{ 'addItem' | i18n }}">
<i class="icon-cozy icon-plus" aria-hidden="true"></i>
</button>
</div>
Expand Down Expand Up @@ -54,13 +54,12 @@ <h1 class="sr-only">{{ "myVault" | i18n }}</h1>
</ng-container>
</div>
<ng-container *ngIf="ciphers && ciphers.length && !showSearching()">
<!-- Cozy customization; add a suggestion section -->
<div class="box list" *ngIf="ciphersForCurrentTab && ciphersForCurrentTab.length">
<h2 class="box-header">
{{ "suggestions" | i18n }}
</h2>
<!-- Cozy customization -->
<app-autofill-tooltip></app-autofill-tooltip>
<!-- Cozy customization end -->
<div class="box-content">
<app-cipher-row
*ngFor="let cipherForCurrentTab of ciphersForCurrentTab"
Expand Down Expand Up @@ -95,7 +94,8 @@ <h2 class="box-header">
</div>
</div>
</div>
<div class="box list" *ngIf="favoriteCiphers.length">
<!-- Cozy customization end -->
<div class="box list" *ngIf="favoriteCiphers">
<h2 class="box-header">
{{ "favorites" | i18n }}
</h2>
Expand All @@ -118,12 +118,11 @@ <h2 class="box-header">
<span class="flex-right">4</span>
-->
</h2>
<div class="box-content single-line underline">
<div class="box-content single-line">
<button
type="button"
class="box-content-row"
appStopClick
appBlurClick
(click)="selectType(cipherType.Login)"
>
<div class="row-main">
Expand All @@ -149,7 +148,6 @@ <h2 class="box-header">
type="button"
class="box-content-row"
appStopClick
appBlurClick
(click)="selectType(cipherType.Card)"
>
<div class="row-main">
Expand All @@ -166,7 +164,7 @@ <h2 class="box-header">
</span>
</div>
</div>
<span class="row-sub-label">{{ this.typeCounts.get(cipherType.Card) || 0 }}</span>
<span class="row-sub-label">{{ typeCounts.get(cipherType.Card) || 0 }}</span>
<span><i class="bwi bwi-angle-right bwi-lg row-sub-icon"></i></span>
</button>
<!-- Cozy customization -->
Expand All @@ -175,7 +173,6 @@ <h2 class="box-header">
type="button"
class="box-content-row"
appStopClick
appBlurClick
(click)="selectType(cipherType.Identity)"
*ngIf="this.typeCounts.get(cipherType.Identity) > 0"
>
Expand All @@ -192,7 +189,6 @@ <h2 class="box-header">
type="button"
class="box-content-row"
appStopClick
appBlurClick
(click)="selectType(cipherType.Contact)"
>
<div class="row-main">
Expand All @@ -208,7 +204,6 @@ <h2 class="box-header">
type="button"
class="box-content-row"
appStopClick
appBlurClick
(click)="selectType(cipherType.Paper)"
>
<div class="row-main">
Expand All @@ -223,7 +218,6 @@ <h2 class="box-header">
type="button"
class="box-content-row"
appStopClick
appBlurClick
(click)="selectType(cipherType.SecureNote)"
*ngIf="this.typeCounts.get(cipherType.SecureNote)"
>
Expand Down Expand Up @@ -286,7 +280,6 @@ <h2 class="box-header">
*ngFor="let nestedCollection of nestedCollections"
class="box-content-row"
appStopClick
appBlurClick
(click)="selectCollection(nestedCollection.node)"
>
<div class="row-main">
Expand Down

0 comments on commit 90c2473

Please sign in to comment.