1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01:00

[SM-462] add route to View Project option (#4682)

This commit is contained in:
Will Martin 2023-02-07 12:24:09 -05:00 committed by GitHub
parent 807a135418
commit dfd3c6aa8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -70,10 +70,10 @@
<i class="bwi bwi-fw bwi-pencil tw-text-xl" aria-hidden="true"></i>
{{ "editProject" | i18n }}
</button>
<button type="button" bitMenuItem (click)="viewProjectEvent.emit(project.id)">
<a bitMenuItem [routerLink]="project.id">
<i class="bwi bwi-fw bwi-eye tw-text-xl" aria-hidden="true"></i>
{{ "viewProject" | i18n }}
</button>
</a>
<button type="button" bitMenuItem (click)="deleteProject(project.id)">
<i class="bwi bwi-fw bwi-trash tw-text-xl tw-text-danger" aria-hidden="true"></i>
<span class="tw-text-danger">{{ "deleteProject" | i18n }}</span>

View File

@ -25,7 +25,6 @@ export class ProjectsListComponent implements OnDestroy {
private _projects: ProjectListView[];
@Output() editProjectEvent = new EventEmitter<string>();
@Output() viewProjectEvent = new EventEmitter<string>();
@Output() deleteProjectEvent = new EventEmitter<ProjectListView[]>();
@Output() onProjectCheckedEvent = new EventEmitter<string[]>();
@Output() newProjectEvent = new EventEmitter();