Skip to content

Commit

Permalink
only allow for new folders when on the folder screen (#10489)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-livefront authored Aug 12, 2024
1 parent 0d829b7 commit b2db633
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<popup-page>
<popup-header slot="header" [pageTitle]="'folders' | i18n" showBackButton>
<ng-container slot="end">
<app-new-item-dropdown></app-new-item-dropdown>
<button bitButton buttonType="primary" type="button" (click)="openAddEditFolderDialog()">
<i class="bwi bwi-plus-f" aria-hidden="true"></i>
{{ "new" | i18n }}
</button>
<app-pop-out></app-pop-out>
</ng-container>
</popup-header>
Expand Down
2 changes: 0 additions & 2 deletions apps/browser/src/vault/popup/settings/folders-v2.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ import {
AddEditFolderDialogComponent,
AddEditFolderDialogData,
} from "../components/vault-v2/add-edit-folder-dialog/add-edit-folder-dialog.component";
import { NewItemDropdownV2Component } from "../components/vault-v2/new-item-dropdown/new-item-dropdown-v2.component";

@Component({
standalone: true,
templateUrl: "./folders-v2.component.html",
imports: [
CommonModule,
JslibModule,
NewItemDropdownV2Component,
PopOutComponent,
PopupPageComponent,
PopupHeaderComponent,
Expand Down

0 comments on commit b2db633

Please sign in to comment.