mirror of
https://github.com/bitwarden/browser
synced 2025-01-23 17:53:31 +01:00
on route if confirmed
This commit is contained in:
parent
72177644ad
commit
d8ca3026cb
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 44a9d17dba4806bb822c5d8d5cf4f3100656db84
|
Subproject commit 7bc65b83667b0864af2b7aaf093ec611ecb625d8
|
@ -304,12 +304,12 @@
|
|||||||
<div class="box-content single-line">
|
<div class="box-content single-line">
|
||||||
<a class="box-content-row" href="#" appStopClick appBlurClick
|
<a class="box-content-row" href="#" appStopClick appBlurClick
|
||||||
(click)="delete()" [appApiAction]="deletePromise" #deleteBtn>
|
(click)="delete()" [appApiAction]="deletePromise" #deleteBtn>
|
||||||
<div class="row-main">
|
<div class="row-main text-danger">
|
||||||
<div class="icon text-danger">
|
<div class="icon text-danger">
|
||||||
<i class="fa fa-trash-o fa-lg fa-fw" [hidden]="deleteBtn.loading"></i>
|
<i class="fa fa-trash-o fa-lg fa-fw" [hidden]="deleteBtn.loading"></i>
|
||||||
<i class="fa fa-spinner fa-spin fa-lg fa-fw" [hidden]="!deleteBtn.loading"></i>
|
<i class="fa fa-spinner fa-spin fa-lg fa-fw" [hidden]="!deleteBtn.loading"></i>
|
||||||
</div>
|
</div>
|
||||||
<span class="text text-danger">{{'deleteItem' | i18n}}</span>
|
<span>{{'deleteItem' | i18n}}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -102,7 +102,8 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async delete() {
|
async delete() {
|
||||||
await super.delete();
|
if (await super.delete()) {
|
||||||
this.router.navigate(['/tabs/vault']);
|
this.router.navigate(['/tabs/vault']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user