1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

Implement disable send policy (#819)

* Implement disable send policy

* Update jslib reference

* PR review

* Lower case enterprise policy
This commit is contained in:
Matt Gibson
2021-02-04 13:08:16 -06:00
committed by GitHub
parent 2e7b88f149
commit af7e2edbf0
8 changed files with 73 additions and 20 deletions

View File

@@ -19,6 +19,8 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { SendService } from 'jslib/abstractions/send.service';
import { BroadcasterService } from 'jslib/angular/services/broadcaster.service';
import { PolicyService } from 'jslib/abstractions/policy.service';
import { SearchService, UserService } from 'jslib/abstractions';
@Component({
selector: 'app-send',
@@ -31,12 +33,18 @@ export class SendComponent extends BaseSendComponent {
constructor(sendService: SendService, i18nService: I18nService,
platformUtilsService: PlatformUtilsService, environmentService: EnvironmentService,
broadcasterService: BroadcasterService, ngZone: NgZone,
broadcasterService: BroadcasterService, ngZone: NgZone, searchService: SearchService,
policyService: PolicyService, userService: UserService,
private componentFactoryResolver: ComponentFactoryResolver) {
super(sendService, i18nService, platformUtilsService, environmentService, broadcasterService, ngZone);
super(sendService, i18nService, platformUtilsService, environmentService, broadcasterService, ngZone,
searchService, policyService, userService);
}
addSend() {
if (this.disableSend) {
return;
}
const component = this.editSend(null);
component.type = this.type;
}