From f36bba64062094bed532341f312c1d5f5e14baf5 Mon Sep 17 00:00:00 2001 From: syntaxerror752 Date: Sat, 30 May 2020 10:21:42 +1000 Subject: [PATCH] Revert last commit due to requested changes Revert last commit due to requested changes. Renamed variable. --- src/app/organizations/manage/manage.component.html | 2 +- src/app/organizations/manage/manage.component.ts | 5 +---- src/app/organizations/settings/settings.component.html | 2 +- src/app/organizations/settings/settings.component.ts | 5 +---- src/app/organizations/tools/tools.component.html | 2 +- src/app/organizations/tools/tools.component.ts | 5 +---- src/app/organizations/vault/vault.component.html | 2 +- src/app/organizations/vault/vault.component.ts | 5 +---- src/app/settings/options.component.html | 10 +++++----- src/app/settings/options.component.ts | 8 ++++---- src/app/settings/settings.component.html | 2 +- src/app/settings/settings.component.ts | 5 +---- src/app/tools/tools.component.html | 2 +- src/app/tools/tools.component.ts | 5 +---- src/app/vault/vault.component.html | 2 +- src/app/vault/vault.component.ts | 6 +----- src/locales/en/messages.json | 6 +++--- src/locales/en_GB/messages.json | 7 ------- src/services/htmlStorage.service.ts | 2 +- 19 files changed, 27 insertions(+), 56 deletions(-) diff --git a/src/app/organizations/manage/manage.component.html b/src/app/organizations/manage/manage.component.html index 49b87986de..c54f1a117f 100644 --- a/src/app/organizations/manage/manage.component.html +++ b/src/app/organizations/manage/manage.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/organizations/manage/manage.component.ts b/src/app/organizations/manage/manage.component.ts index 2cfe7ba94c..c6042bfbb3 100644 --- a/src/app/organizations/manage/manage.component.ts +++ b/src/app/organizations/manage/manage.component.ts @@ -5,7 +5,6 @@ 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'; @@ -18,13 +17,11 @@ export class ManageComponent implements OnInit { accessPolicies = false; accessGroups = false; accessEvents = false; - scaleUIWidth: boolean = false; - constructor(private route: ActivatedRoute, private userService: UserService, private storageService: StorageService) { } + constructor(private route: ActivatedRoute, private userService: UserService) { } ngOnInit() { this.route.parent.params.subscribe(async (params) => { - this.scaleUIWidth = await this.storageService.get('enableUIScaling'); this.organization = await this.userService.getOrganization(params.organizationId); this.accessPolicies = this.organization.usePolicies; this.accessEvents = this.organization.useEvents; diff --git a/src/app/organizations/settings/settings.component.html b/src/app/organizations/settings/settings.component.html index e7cce8e587..2dac5ac185 100644 --- a/src/app/organizations/settings/settings.component.html +++ b/src/app/organizations/settings/settings.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/organizations/settings/settings.component.ts b/src/app/organizations/settings/settings.component.ts index ff5441e32f..c2db836085 100644 --- a/src/app/organizations/settings/settings.component.ts +++ b/src/app/organizations/settings/settings.component.ts @@ -3,7 +3,6 @@ import { ActivatedRoute } from '@angular/router'; import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { UserService } from 'jslib/abstractions/user.service'; -import { StorageService } from 'jslib/abstractions/storage.service'; @Component({ selector: 'app-org-settings', @@ -12,14 +11,12 @@ import { StorageService } from 'jslib/abstractions/storage.service'; export class SettingsComponent { access2fa = false; selfHosted: boolean; - scaleUIWidth: boolean = false; constructor(private route: ActivatedRoute, private userService: UserService, - private platformUtilsService: PlatformUtilsService, private storageService: StorageService) { } + private platformUtilsService: PlatformUtilsService) { } ngOnInit() { this.route.parent.params.subscribe(async (params) => { - this.scaleUIWidth = await this.storageService.get('enableUIScaling'); this.selfHosted = await this.platformUtilsService.isSelfHost(); const organization = await this.userService.getOrganization(params.organizationId); this.access2fa = organization.use2fa; diff --git a/src/app/organizations/tools/tools.component.html b/src/app/organizations/tools/tools.component.html index 1f24beaa67..0ffb712568 100644 --- a/src/app/organizations/tools/tools.component.html +++ b/src/app/organizations/tools/tools.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/organizations/tools/tools.component.ts b/src/app/organizations/tools/tools.component.ts index a31fed0c0f..4df7d2523b 100644 --- a/src/app/organizations/tools/tools.component.ts +++ b/src/app/organizations/tools/tools.component.ts @@ -5,7 +5,6 @@ import { Organization } from 'jslib/models/domain/organization'; import { MessagingService } from 'jslib/abstractions/messaging.service'; import { UserService } from 'jslib/abstractions/user.service'; -import { StorageService } from 'jslib/abstractions/storage.service'; @Component({ selector: 'app-org-tools', @@ -14,14 +13,12 @@ import { StorageService } from 'jslib/abstractions/storage.service'; export class ToolsComponent { organization: Organization; accessReports = false; - scaleUIWidth: boolean = false; constructor(private route: ActivatedRoute, private userService: UserService, - private messagingService: MessagingService, private storageService: StorageService) { } + private messagingService: MessagingService) { } ngOnInit() { this.route.parent.params.subscribe(async (params) => { - this.scaleUIWidth = await this.storageService.get('enableUIScaling'); this.organization = await this.userService.getOrganization(params.organizationId); // TODO: Maybe we want to just make sure they are not on a free plan? Just compare useTotp for now // since all paid plans include useTotp diff --git a/src/app/organizations/vault/vault.component.html b/src/app/organizations/vault/vault.component.html index a54060e95f..3f836dee51 100644 --- a/src/app/organizations/vault/vault.component.html +++ b/src/app/organizations/vault/vault.component.html @@ -1,4 +1,4 @@ -
+
{ - this.scaleUIWidth = await this.storageService.get('enableUIScaling'); this.organization = await this.userService.getOrganization(params.organizationId); this.groupingsComponent.organization = this.organization; this.ciphersComponent.organization = this.organization; diff --git a/src/app/settings/options.component.html b/src/app/settings/options.component.html index 182f0088ec..b369b90f6f 100644 --- a/src/app/settings/options.component.html +++ b/src/app/settings/options.component.html @@ -79,13 +79,13 @@
- -
- {{'enableUIScalingDesc' | i18n}} + {{'enableFullWidthDesc' | i18n}}