mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 10:43:35 +00:00
Update HTML and TS scripts for UI scaling
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
import { UserService } from 'jslib/abstractions/user.service';
|
||||
import { StorageService } from 'jslib/abstractions/storage.service';
|
||||
|
||||
import { Organization } from 'jslib/models/domain/organization';
|
||||
|
||||
@@ -17,11 +18,13 @@ export class ManageComponent implements OnInit {
|
||||
accessPolicies = false;
|
||||
accessGroups = false;
|
||||
accessEvents = false;
|
||||
scaleUIWidth: boolean = false;
|
||||
|
||||
constructor(private route: ActivatedRoute, private userService: UserService) { }
|
||||
constructor(private route: ActivatedRoute, private userService: UserService, private storageService: StorageService) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.route.parent.params.subscribe(async (params) => {
|
||||
this.scaleUIWidth = await this.storageService.get<boolean>('enableUIScaling');
|
||||
this.organization = await this.userService.getOrganization(params.organizationId);
|
||||
this.accessPolicies = this.organization.usePolicies;
|
||||
this.accessEvents = this.organization.useEvents;
|
||||
|
||||
Reference in New Issue
Block a user