1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-16 02:27:00 +02:00

add/edit folder title

This commit is contained in:
Kyle Spearrin 2018-01-30 15:58:58 -05:00
parent c2160667d6
commit 3a067858f1
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<div class="modal-body">
<div class="box">
<div class="box-header">
{{'addFolder' | i18n}}
{{title}}
</div>
<div class="box-content">
<div class="box-content-row" appBoxRow>

View File

@ -27,6 +27,7 @@ export class FolderAddEditComponent implements OnInit {
editMode: boolean = false;
folder: FolderView = new FolderView();
title: string;
constructor(private folderService: FolderService, private i18nService: I18nService,
private analytics: Angulartics2, private toasterService: ToasterService) { }
@ -36,8 +37,11 @@ export class FolderAddEditComponent implements OnInit {
if (this.editMode) {
this.editMode = true;
this.title = this.i18nService.t('editFolder');
const folder = await this.folderService.get(this.folderId);
this.folder = await folder.decrypt();
} else {
this.title = this.i18nService.t('addFolder');
}
}