mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
finalize send list container
This commit is contained in:
@@ -1996,6 +1996,9 @@
|
|||||||
"passwordProtected": {
|
"passwordProtected": {
|
||||||
"message": "Password protected"
|
"message": "Password protected"
|
||||||
},
|
},
|
||||||
|
"copyLink": {
|
||||||
|
"message": "Copy link"
|
||||||
|
},
|
||||||
"copySendLink": {
|
"copySendLink": {
|
||||||
"message": "Copy Send link",
|
"message": "Copy Send link",
|
||||||
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
||||||
|
|||||||
@@ -1937,30 +1937,6 @@
|
|||||||
"copyLink": {
|
"copyLink": {
|
||||||
"message": "Copy link"
|
"message": "Copy link"
|
||||||
},
|
},
|
||||||
"copySendTitle": {
|
|
||||||
"message": "Copy link - $NAME$",
|
|
||||||
"placeholders": {
|
|
||||||
"name": {
|
|
||||||
"content": "$1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"deleteSend": {
|
|
||||||
"message": "Delete - $NAME$",
|
|
||||||
"placeholders": {
|
|
||||||
"name": {
|
|
||||||
"content": "$1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"editSendTitle": {
|
|
||||||
"message": "Edit - $NAME$",
|
|
||||||
"placeholders": {
|
|
||||||
"name": {
|
|
||||||
"content": "$1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"disabled": {
|
"disabled": {
|
||||||
"message": "Disabled"
|
"message": "Disabled"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4350,6 +4350,9 @@
|
|||||||
"message": "Send link",
|
"message": "Send link",
|
||||||
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
||||||
},
|
},
|
||||||
|
"copyLink": {
|
||||||
|
"message": "Copy link"
|
||||||
|
},
|
||||||
"copySendLink": {
|
"copySendLink": {
|
||||||
"message": "Copy Send link",
|
"message": "Copy Send link",
|
||||||
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<bit-item *ngFor="let send of sends">
|
<bit-item *ngFor="let send of sends">
|
||||||
<button
|
<button
|
||||||
bit-item-content
|
bit-item-content
|
||||||
[appA11yTitle]="'editSendTitle' | i18n: (send.name | i18n)"
|
appA11yTitle="{{ 'edit' | i18n }} - {{ send.name }}"
|
||||||
appStopClick
|
appStopClick
|
||||||
type="button"
|
type="button"
|
||||||
class="tw-pb-1"
|
class="tw-pb-1"
|
||||||
@@ -32,7 +32,8 @@
|
|||||||
<bit-item-action>
|
<bit-item-action>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
appA11yTitle="{{ 'copySendTitle' | i18n }}: {{ send.name | i18n }}"
|
(click)="copySendLink(send)"
|
||||||
|
appA11yTitle="{{ 'copyLink' | i18n }} - {{ send.name }}"
|
||||||
>
|
>
|
||||||
<i class="bwi tw-text-lg bwi-clone"></i>
|
<i class="bwi tw-text-lg bwi-clone"></i>
|
||||||
</button>
|
</button>
|
||||||
@@ -40,7 +41,8 @@
|
|||||||
<bit-item-action>
|
<bit-item-action>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
appA11yTitle="{{ 'deleteSendTitle' | i18n }}: {{ send.name | i18n }}"
|
(click)="deleteSend(send)"
|
||||||
|
appA11yTitle="{{ 'delete' | i18n }} - {{ send.name }}"
|
||||||
>
|
>
|
||||||
<i class="bwi tw-text-lg bwi-trash"></i>
|
<i class="bwi tw-text-lg bwi-trash"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -69,6 +69,8 @@ export class SendListItemsContainerComponent {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await this.sendApiService.delete(s.id);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.toastService.showToast({
|
this.toastService.showToast({
|
||||||
variant: "success",
|
variant: "success",
|
||||||
@@ -80,7 +82,7 @@ export class SendListItemsContainerComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async copy(s: SendView) {
|
async copySendLink(s: SendView) {
|
||||||
const env = await firstValueFrom(this.environmentService.environment$);
|
const env = await firstValueFrom(this.environmentService.environment$);
|
||||||
const link = env.getSendUrl() + s.accessId + "/" + s.urlB64Key;
|
const link = env.getSendUrl() + s.accessId + "/" + s.urlB64Key;
|
||||||
this.platformUtilsService.copyToClipboard(link);
|
this.platformUtilsService.copyToClipboard(link);
|
||||||
|
|||||||
Reference in New Issue
Block a user