1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-29 04:17:41 +02:00

Change "hide dock" to "always show dock"

This commit is contained in:
Hinton 2020-11-20 15:49:50 +01:00
parent 14181dc34d
commit ae5a5082db
3 changed files with 16 additions and 16 deletions

View File

@ -128,15 +128,15 @@
</div> </div>
<small class="help-block">{{'startToTrayDesc' | i18n}}</small> <small class="help-block">{{'startToTrayDesc' | i18n}}</small>
</div> </div>
<div class="form-group" *ngIf="showHideDock"> <div class="form-group" *ngIf="showAlwaysShowDock">
<div class="checkbox"> <div class="checkbox">
<label for="hideDock"> <label for="alwaysShowDock">
<input id="hideDock" type="checkbox" name="HideDock" [(ngModel)]="hideDock" <input id="alwaysShowDock" type="checkbox" name="AlwaysShowDock" [(ngModel)]="alwaysShowDock"
(change)="saveHideDock()"> (change)="saveAlwaysShowDock()">
{{'hideDock' | i18n}} {{'alwaysShowDock' | i18n}}
</label> </label>
</div> </div>
<small class="help-block">{{'hideDockDesc' | i18n}}</small> <small class="help-block">{{'alwaysShowDockDesc' | i18n}}</small>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="theme">{{'theme' | i18n}}</label> <label for="theme">{{'theme' | i18n}}</label>

View File

@ -51,8 +51,8 @@ export class SettingsComponent implements OnInit {
supportsBiometric: boolean; supportsBiometric: boolean;
biometric: boolean; biometric: boolean;
biometricText: string; biometricText: string;
hideDock: boolean; alwaysShowDock: boolean;
showHideDock: boolean = false; showAlwaysShowDock: boolean = false;
constructor(private analytics: Angulartics2, private toasterService: ToasterService, constructor(private analytics: Angulartics2, private toasterService: ToasterService,
private i18nService: I18nService, private platformUtilsService: PlatformUtilsService, private i18nService: I18nService, private platformUtilsService: PlatformUtilsService,
@ -133,8 +133,8 @@ export class SettingsComponent implements OnInit {
this.supportsBiometric = await this.platformUtilsService.supportsBiometric(); this.supportsBiometric = await this.platformUtilsService.supportsBiometric();
this.biometric = await this.vaultTimeoutService.isBiometricLockSet(); this.biometric = await this.vaultTimeoutService.isBiometricLockSet();
this.biometricText = await this.storageService.get<string>(ConstantsService.biometricText); this.biometricText = await this.storageService.get<string>(ConstantsService.biometricText);
this.hideDock = await this.storageService.get<boolean>(ElectronConstants.hideDock); this.alwaysShowDock = await this.storageService.get<boolean>(ElectronConstants.alwaysShowDock);
this.showHideDock = this.platformUtilsService.getDevice() === DeviceType.MacOsDesktop; this.showAlwaysShowDock = this.platformUtilsService.getDevice() === DeviceType.MacOsDesktop;
} }
async saveVaultTimeoutOptions() { async saveVaultTimeoutOptions() {
@ -281,8 +281,8 @@ export class SettingsComponent implements OnInit {
}); });
} }
async saveHideDock() { async saveAlwaysShowDock() {
await this.storageService.save(ElectronConstants.hideDock, this.hideDock); await this.storageService.save(ElectronConstants.alwaysShowDock, this.alwaysShowDock);
} }
private callAnalytics(name: string, enabled: boolean) { private callAnalytics(name: string, enabled: boolean) {

View File

@ -870,11 +870,11 @@
"startToTrayDesc": { "startToTrayDesc": {
"message": "When the application is first started, only show an icon in the system tray." "message": "When the application is first started, only show an icon in the system tray."
}, },
"hideDock": { "alwaysShowDock": {
"message": "Hide dock icon" "message": "Always show in the Dock"
}, },
"hideDockDesc": { "alwaysShowDockDesc": {
"message": "Hide Bitwarden from the Dock when minimized to the menu bar." "message": "Show the Bitwarden icon in the Dock even when minimized to the menu bar."
}, },
"language": { "language": {
"message": "Language" "message": "Language"