mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
delete item button
This commit is contained in:
@@ -8,6 +8,10 @@ small {
|
|||||||
color: $brand-primary !important;
|
color: $brand-primary !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-danger {
|
||||||
|
color: $brand-danger !important;
|
||||||
|
}
|
||||||
|
|
||||||
.text-success {
|
.text-success {
|
||||||
color: $brand-success !important;
|
color: $brand-success !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -300,5 +300,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="box list" *ngIf="editMode">
|
||||||
|
<div class="box-content single-line">
|
||||||
|
<a class="box-content-row" href="#" appStopClick appBlurClick
|
||||||
|
(click)="delete()" [appApiAction]="deletePromise" #deleteBtn>
|
||||||
|
<div class="row-main">
|
||||||
|
<div class="icon text-danger">
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
<span class="text text-danger">{{'deleteItem' | i18n}}</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</content>
|
</content>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -100,4 +100,9 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
return confirmed;
|
return confirmed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async delete() {
|
||||||
|
await super.delete();
|
||||||
|
this.router.navigate(['/tabs/vault']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user