mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
Added disabled icon and make File default type for new Sends if premium (#1261)
* Added disabled icon and make File default type for new Sends if premium * forgot to expand colspan for extra icon
This commit is contained in:
@@ -46,6 +46,7 @@
|
|||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
@@ -59,7 +60,7 @@
|
|||||||
LineBreakMode="TailTruncation"
|
LineBreakMode="TailTruncation"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.ColumnSpan="5"
|
Grid.ColumnSpan="6"
|
||||||
StyleClass="list-subtitle, list-subtitle-platform"
|
StyleClass="list-subtitle, list-subtitle-platform"
|
||||||
Text="{Binding Send.DisplayDate, Mode=OneWay}" />
|
Text="{Binding Send.DisplayDate, Mode=OneWay}" />
|
||||||
<controls:FaLabel
|
<controls:FaLabel
|
||||||
@@ -69,12 +70,23 @@
|
|||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
StyleClass="list-title-icon"
|
StyleClass="list-title-icon"
|
||||||
Margin="5, 0, 0, 0"
|
Margin="5, 0, 0, 0"
|
||||||
|
Text=""
|
||||||
|
IsVisible="{Binding Send.Disabled, Mode=OneWay}"
|
||||||
|
AutomationProperties.IsInAccessibleTree="True"
|
||||||
|
AutomationProperties.Name="{u:I18n Disabled}" />
|
||||||
|
<controls:FaLabel
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.Row="0"
|
||||||
|
HorizontalOptions="Start"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
StyleClass="list-title-icon"
|
||||||
|
Margin="5, 0, 0, 0"
|
||||||
Text=""
|
Text=""
|
||||||
IsVisible="{Binding Send.HasPassword, Mode=OneWay}"
|
IsVisible="{Binding Send.HasPassword, Mode=OneWay}"
|
||||||
AutomationProperties.IsInAccessibleTree="True"
|
AutomationProperties.IsInAccessibleTree="True"
|
||||||
AutomationProperties.Name="{u:I18n Password}" />
|
AutomationProperties.Name="{u:I18n Password}" />
|
||||||
<controls:FaLabel
|
<controls:FaLabel
|
||||||
Grid.Column="2"
|
Grid.Column="3"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
HorizontalOptions="Start"
|
HorizontalOptions="Start"
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
@@ -85,7 +97,7 @@
|
|||||||
AutomationProperties.IsInAccessibleTree="True"
|
AutomationProperties.IsInAccessibleTree="True"
|
||||||
AutomationProperties.Name="{u:I18n MaxAccessCountReached}" />
|
AutomationProperties.Name="{u:I18n MaxAccessCountReached}" />
|
||||||
<controls:FaLabel
|
<controls:FaLabel
|
||||||
Grid.Column="3"
|
Grid.Column="4"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
HorizontalOptions="Start"
|
HorizontalOptions="Start"
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
@@ -96,7 +108,7 @@
|
|||||||
AutomationProperties.IsInAccessibleTree="True"
|
AutomationProperties.IsInAccessibleTree="True"
|
||||||
AutomationProperties.Name="{u:I18n Expired}" />
|
AutomationProperties.Name="{u:I18n Expired}" />
|
||||||
<controls:FaLabel
|
<controls:FaLabel
|
||||||
Grid.Column="4"
|
Grid.Column="5"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
HorizontalOptions="Start"
|
HorizontalOptions="Start"
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
|
|||||||
@@ -86,11 +86,11 @@
|
|||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Button Text="{u:I18n TypeText}"
|
<Button Text="{u:I18n TypeFile}"
|
||||||
IsEnabled="{Binding IsFile}"
|
IsEnabled="{Binding IsText}"
|
||||||
Clicked="TextType_Clicked"
|
Clicked="FileType_Clicked"
|
||||||
AutomationProperties.IsInAccessibleTree="True"
|
AutomationProperties.IsInAccessibleTree="True"
|
||||||
AutomationProperties.Name="{u:I18n Text}"
|
AutomationProperties.Name="{u:I18n File}"
|
||||||
Grid.Column="0">
|
Grid.Column="0">
|
||||||
<VisualStateManager.VisualStateGroups>
|
<VisualStateManager.VisualStateGroups>
|
||||||
<!-- Rider users, if the x:Name values below are red, it's a known issue: -->
|
<!-- Rider users, if the x:Name values below are red, it's a known issue: -->
|
||||||
@@ -111,11 +111,11 @@
|
|||||||
</VisualStateGroup>
|
</VisualStateGroup>
|
||||||
</VisualStateManager.VisualStateGroups>
|
</VisualStateManager.VisualStateGroups>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Text="{u:I18n TypeFile}"
|
<Button Text="{u:I18n TypeText}"
|
||||||
IsEnabled="{Binding IsText}"
|
IsEnabled="{Binding IsFile}"
|
||||||
Clicked="FileType_Clicked"
|
Clicked="TextType_Clicked"
|
||||||
AutomationProperties.IsInAccessibleTree="True"
|
AutomationProperties.IsInAccessibleTree="True"
|
||||||
AutomationProperties.Name="{u:I18n File}"
|
AutomationProperties.Name="{u:I18n Text}"
|
||||||
Grid.Column="1">
|
Grid.Column="1">
|
||||||
<VisualStateManager.VisualStateGroups>
|
<VisualStateManager.VisualStateGroups>
|
||||||
<!-- Rider users, if the x:Name values below are red, it's a known issue: -->
|
<!-- Rider users, if the x:Name values below are red, it's a known issue: -->
|
||||||
|
|||||||
@@ -195,9 +195,10 @@ namespace Bit.App.Pages
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
var defaultType = _canAccessPremium ? SendType.File : SendType.Text;
|
||||||
Send = new SendView
|
Send = new SendView
|
||||||
{
|
{
|
||||||
Type = Type.GetValueOrDefault(SendType.Text),
|
Type = Type.GetValueOrDefault(defaultType),
|
||||||
DeletionDate = DateTime.Now.AddDays(7),
|
DeletionDate = DateTime.Now.AddDays(7),
|
||||||
};
|
};
|
||||||
DeletionDateTypeSelectedIndex = 4;
|
DeletionDateTypeSelectedIndex = 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user