mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 00:33:20 +00:00
Change switch binding back to using EnforcedPolicyOptions directly (#744)
This commit is contained in:
@@ -229,11 +229,7 @@ namespace Bit.App.Pages
|
||||
set => SetProperty(ref _enforcedPolicyOptions, value,
|
||||
additionalPropertyNames: new[]
|
||||
{
|
||||
nameof(IsPolicyInEffect),
|
||||
nameof(IsUppercaseSwitchEnabled),
|
||||
nameof(IsLowercaseSwitchEnabled),
|
||||
nameof(IsNumberSwitchEnabled),
|
||||
nameof(IsSpecialSwitchEnabled)
|
||||
nameof(IsPolicyInEffect)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -242,14 +238,6 @@ namespace Bit.App.Pages
|
||||
_enforcedPolicyOptions.NumberCount > 0 || _enforcedPolicyOptions.UseSpecial ||
|
||||
_enforcedPolicyOptions.SpecialCount > 0;
|
||||
|
||||
public bool IsUppercaseSwitchEnabled => !IsPolicyInEffect || !EnforcedPolicyOptions.UseUppercase;
|
||||
|
||||
public bool IsLowercaseSwitchEnabled => !IsPolicyInEffect || !EnforcedPolicyOptions.UseLowercase;
|
||||
|
||||
public bool IsNumberSwitchEnabled => !IsPolicyInEffect || !EnforcedPolicyOptions.UseNumbers;
|
||||
|
||||
public bool IsSpecialSwitchEnabled => !IsPolicyInEffect || !EnforcedPolicyOptions.UseSpecial;
|
||||
|
||||
public int TypeSelectedIndex
|
||||
{
|
||||
get => _typeSelectedIndex;
|
||||
|
||||
Reference in New Issue
Block a user