mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
Replace toaster library (#1322)
This commit is contained in:
@@ -6,12 +6,11 @@ import {
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
|
||||
import { ToasterService } from 'angular2-toaster';
|
||||
|
||||
import { CipherService } from 'jslib-common/abstractions/cipher.service';
|
||||
import { CollectionService } from 'jslib-common/abstractions/collection.service';
|
||||
import { I18nService } from 'jslib-common/abstractions/i18n.service';
|
||||
import { LogService } from 'jslib-common/abstractions/log.service';
|
||||
import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.service';
|
||||
import { UserService } from 'jslib-common/abstractions/user.service';
|
||||
|
||||
import { CipherView } from 'jslib-common/models/view/cipherView';
|
||||
@@ -36,7 +35,7 @@ export class BulkShareComponent implements OnInit {
|
||||
|
||||
private writeableCollections: CollectionView[] = [];
|
||||
|
||||
constructor(private cipherService: CipherService, private toasterService: ToasterService,
|
||||
constructor(private cipherService: CipherService, private platformUtilsService: PlatformUtilsService,
|
||||
private i18nService: I18nService, private collectionService: CollectionService,
|
||||
private userService: UserService, private logService: LogService) { }
|
||||
|
||||
@@ -73,7 +72,7 @@ export class BulkShareComponent implements OnInit {
|
||||
await this.formPromise;
|
||||
this.onShared.emit();
|
||||
const orgName = this.organizations.find(o => o.id === this.organizationId)?.name ?? this.i18nService.t('organization');
|
||||
this.toasterService.popAsync('success', null, this.i18nService.t('movedItemsToOrg', orgName));
|
||||
this.platformUtilsService.showToast('success', null, this.i18nService.t('movedItemsToOrg', orgName));
|
||||
} catch (e) {
|
||||
this.logService.error(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user