mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
[PS-1901] Add menu item to remove a previously set password from a Send (#4100)
* Remove a previously set password from a Send * Only refresh if the send item was selected before * Display menuItem only when a password has been set
This commit is contained in:
committed by
GitHub
parent
9dc72428d0
commit
e9781b4214
@@ -132,6 +132,18 @@ export class SendComponent extends BaseSendComponent implements OnInit, OnDestro
|
|||||||
label: this.i18nService.t("copyLink"),
|
label: this.i18nService.t("copyLink"),
|
||||||
click: () => this.copy(send),
|
click: () => this.copy(send),
|
||||||
});
|
});
|
||||||
|
if (send.password && !send.disabled) {
|
||||||
|
menu.push({
|
||||||
|
label: this.i18nService.t("removePassword"),
|
||||||
|
click: async () => {
|
||||||
|
await this.removePassword(send);
|
||||||
|
if (this.sendId === send.id) {
|
||||||
|
this.sendId = null;
|
||||||
|
this.selectSend(send.id);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
menu.push({
|
menu.push({
|
||||||
label: this.i18nService.t("delete"),
|
label: this.i18nService.t("delete"),
|
||||||
click: async () => {
|
click: async () => {
|
||||||
|
|||||||
@@ -1779,6 +1779,15 @@
|
|||||||
"disabled": {
|
"disabled": {
|
||||||
"message": "Disabled"
|
"message": "Disabled"
|
||||||
},
|
},
|
||||||
|
"removePassword": {
|
||||||
|
"message": "Remove password"
|
||||||
|
},
|
||||||
|
"removedPassword": {
|
||||||
|
"message": "Password removed"
|
||||||
|
},
|
||||||
|
"removePasswordConfirmation": {
|
||||||
|
"message": "Are you sure you want to remove the password?"
|
||||||
|
},
|
||||||
"maxAccessCountReached": {
|
"maxAccessCountReached": {
|
||||||
"message": "Max access count reached"
|
"message": "Max access count reached"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user