mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
send improvements and bug fixes (#757)
* send improvements and bug fixes * update jslib * update jslib * update jslib * update jslib ref * Hide match uri overflow (#758) match descriptions are overflowing in german and causing the uri delete button to overflow off of the cipher view modal * update jslib * jslib ref * update jslib Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
This commit is contained in:
@@ -37,6 +37,8 @@ export class AccessComponent implements OnInit {
|
||||
formPromise: Promise<SendAccessResponse>;
|
||||
password: string;
|
||||
showText = false;
|
||||
unavailable = false;
|
||||
error = false;
|
||||
|
||||
private id: string;
|
||||
private key: string;
|
||||
@@ -93,10 +95,6 @@ export class AccessComponent implements OnInit {
|
||||
this.downloading = false;
|
||||
}
|
||||
|
||||
selectText() {
|
||||
(document.getElementById('text') as HTMLInputElement).select();
|
||||
}
|
||||
|
||||
copyText() {
|
||||
this.platformUtilsService.copyToClipboard(this.send.text.text);
|
||||
this.platformUtilsService.showToast('success', null,
|
||||
@@ -108,6 +106,8 @@ export class AccessComponent implements OnInit {
|
||||
}
|
||||
|
||||
async load() {
|
||||
this.unavailable = false;
|
||||
this.error = false;
|
||||
const keyArray = Utils.fromUrlB64ToArray(this.key);
|
||||
const accessRequest = new SendAccessRequest();
|
||||
if (this.password != null) {
|
||||
@@ -131,6 +131,10 @@ export class AccessComponent implements OnInit {
|
||||
if (e instanceof ErrorResponse) {
|
||||
if (e.statusCode === 401) {
|
||||
this.passwordRequired = true;
|
||||
} else if (e.statusCode === 404) {
|
||||
this.unavailable = true;
|
||||
} else {
|
||||
this.error = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user