1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

bells and whistles for Send

This commit is contained in:
addison
2021-02-18 13:03:20 -05:00
parent 4a8cf62495
commit ac807b6d54
7 changed files with 170 additions and 78 deletions

View File

@@ -17,6 +17,7 @@ import { AddEditComponent as BaseAddEditComponent } from 'jslib/angular/componen
templateUrl: 'add-edit.component.html',
})
export class AddEditComponent extends BaseAddEditComponent {
showOptions = false;
constructor(i18nService: I18nService, platformUtilsService: PlatformUtilsService,
environmentService: EnvironmentService, datePipe: DatePipe,
sendService: SendService, userService: UserService,
@@ -37,4 +38,14 @@ export class AddEditComponent extends BaseAddEditComponent {
cancel() {
this.onCancelled.emit(this.send);
}
toggleOptions() {
this.showOptions = !this.showOptions;
}
copyLinkToClipboard(link: string) {
super.copyLinkToClipboard(link);
this.platformUtilsService.showToast('success', null,
this.i18nService.t('valueCopied', this.i18nService.t('sendLink')));
}
}