mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-28 12:35:40 +01:00
add/edit folder title
This commit is contained in:
parent
c2160667d6
commit
3a067858f1
@ -4,7 +4,7 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
{{'addFolder' | i18n}}
|
{{title}}
|
||||||
</div>
|
</div>
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<div class="box-content-row" appBoxRow>
|
<div class="box-content-row" appBoxRow>
|
||||||
|
@ -27,6 +27,7 @@ export class FolderAddEditComponent implements OnInit {
|
|||||||
|
|
||||||
editMode: boolean = false;
|
editMode: boolean = false;
|
||||||
folder: FolderView = new FolderView();
|
folder: FolderView = new FolderView();
|
||||||
|
title: string;
|
||||||
|
|
||||||
constructor(private folderService: FolderService, private i18nService: I18nService,
|
constructor(private folderService: FolderService, private i18nService: I18nService,
|
||||||
private analytics: Angulartics2, private toasterService: ToasterService) { }
|
private analytics: Angulartics2, private toasterService: ToasterService) { }
|
||||||
@ -36,8 +37,11 @@ export class FolderAddEditComponent implements OnInit {
|
|||||||
|
|
||||||
if (this.editMode) {
|
if (this.editMode) {
|
||||||
this.editMode = true;
|
this.editMode = true;
|
||||||
|
this.title = this.i18nService.t('editFolder');
|
||||||
const folder = await this.folderService.get(this.folderId);
|
const folder = await this.folderService.get(this.folderId);
|
||||||
this.folder = await folder.decrypt();
|
this.folder = await folder.decrypt();
|
||||||
|
} else {
|
||||||
|
this.title = this.i18nService.t('addFolder');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user