public async Task InitAsync() { _initialized = true; FileFormatSelectedIndex = FileFormatOptions.FindIndex(k => k.Key == "json"); DisablePrivateVaultPolicyEnabled = await _policyService.PolicyAppliesToUser(PolicyType.DisablePersonalVaultExport); UpdateWarning(); }
public async Task InitAsync() { _initialized = true; FileFormatSelectedIndex = FileFormatOptions.FindIndex(k => k.Key == "json"); DisablePrivateVaultPolicyEnabled = await _policyService.PolicyAppliesToUser(PolicyType.DisablePersonalVaultExport); UseOTPVerification = await _keyConnectorService.GetUsesKeyConnector(); if (UseOTPVerification) { InstructionText = _i18nService.T("ExportVaultOTPDescription"); SecretName = _i18nService.T("VerificationCode"); } else { InstructionText = _i18nService.T("ExportVaultMasterPasswordDescription"); SecretName = _i18nService.T("MasterPassword"); } UpdateWarning(); }
public async Task InitAsync() { _initialized = true; FileFormatSelectedIndex = FileFormatOptions.FindIndex(k => k.Key == "json"); UpdateWarning(); }
public async Task InitAsync() { FileFormatSelectedIndex = FileFormatOptions.FindIndex(k => k.Key == "json"); }