mirror of
https://github.com/bitwarden/mobile.git
synced 2025-01-09 19:17:42 +01:00
PM-1575 Added copy application icon to Fido2Key UI
This commit is contained in:
parent
657dd3047c
commit
d62c34a823
@ -532,7 +532,7 @@
|
|||||||
<Grid
|
<Grid
|
||||||
StyleClass="box-row"
|
StyleClass="box-row"
|
||||||
RowDefinitions="Auto,*,Auto"
|
RowDefinitions="Auto,*,Auto"
|
||||||
ColumnDefinitions="*,Auto">
|
ColumnDefinitions="*,Auto,Auto">
|
||||||
<Label
|
<Label
|
||||||
Text="{u:I18n Application}"
|
Text="{u:I18n Application}"
|
||||||
StyleClass="box-label" />
|
StyleClass="box-label" />
|
||||||
@ -545,18 +545,26 @@
|
|||||||
Text="{Binding Source={x:Static core:BitwardenIcons.ShareSquare}}"
|
Text="{Binding Source={x:Static core:BitwardenIcons.ShareSquare}}"
|
||||||
Command="{Binding LaunchUriCommand}"
|
Command="{Binding LaunchUriCommand}"
|
||||||
CommandParameter="{Binding Cipher.Fido2Key}"
|
CommandParameter="{Binding Cipher.Fido2Key}"
|
||||||
Grid.Row="0"
|
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Grid.RowSpan="2"
|
Grid.RowSpan="2"
|
||||||
VerticalOptions="End"
|
VerticalOptions="End"
|
||||||
IsVisible="{Binding Cipher.Fido2Key.CanLaunch, Mode=OneWay}"
|
IsVisible="{Binding Cipher.Fido2Key.CanLaunch, Mode=OneWay}"
|
||||||
AutomationProperties.IsInAccessibleTree="True"
|
AutomationProperties.IsInAccessibleTree="True"
|
||||||
AutomationProperties.Name="{u:I18n Launch}" />
|
AutomationProperties.Name="{u:I18n Launch}" />
|
||||||
|
<controls:IconButton
|
||||||
|
StyleClass="box-row-button, box-row-button-platform"
|
||||||
|
Text="{Binding Source={x:Static core:BitwardenIcons.Clone}}"
|
||||||
|
Command="{Binding CopyCommand}"
|
||||||
|
CommandParameter="Fido2KeyApplication"
|
||||||
|
Grid.Column="2"
|
||||||
|
Grid.RowSpan="2"
|
||||||
|
AutomationProperties.IsInAccessibleTree="True"
|
||||||
|
AutomationProperties.Name="{u:I18n CopyApplication}" />
|
||||||
<BoxView
|
<BoxView
|
||||||
StyleClass="box-row-separator"
|
StyleClass="box-row-separator"
|
||||||
Margin="0,3,0,0"
|
Margin="0,3,0,0"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Grid.ColumnSpan="2" />
|
Grid.ColumnSpan="3" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
|
@ -648,6 +648,11 @@ namespace Bit.App.Pages
|
|||||||
text = Cipher.Card.Code;
|
text = Cipher.Card.Code;
|
||||||
name = AppResources.SecurityCode;
|
name = AppResources.SecurityCode;
|
||||||
}
|
}
|
||||||
|
else if (id == "Fido2KeyApplication")
|
||||||
|
{
|
||||||
|
text = Cipher.Fido2Key?.LaunchUri;
|
||||||
|
name = AppResources.Application;
|
||||||
|
}
|
||||||
|
|
||||||
if (text != null)
|
if (text != null)
|
||||||
{
|
{
|
||||||
|
9
src/App/Resources/AppResources.Designer.cs
generated
9
src/App/Resources/AppResources.Designer.cs
generated
@ -1561,6 +1561,15 @@ namespace Bit.App.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Copy application.
|
||||||
|
/// </summary>
|
||||||
|
public static string CopyApplication {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("CopyApplication", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Copy link.
|
/// Looks up a localized string similar to Copy link.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -2653,4 +2653,7 @@ Do you want to switch to this account?</value>
|
|||||||
<data name="ThePasskeyWillNotBeCopiedToTheClonedItemDoYouWantToContinueCloningThisItem" xml:space="preserve">
|
<data name="ThePasskeyWillNotBeCopiedToTheClonedItemDoYouWantToContinueCloningThisItem" xml:space="preserve">
|
||||||
<value>The passkey will not be copied to the cloned item. Do you want to continue cloning this item?</value>
|
<value>The passkey will not be copied to the cloned item. Do you want to continue cloning this item?</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="CopyApplication" xml:space="preserve">
|
||||||
|
<value>Copy application</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
|
Loading…
Reference in New Issue
Block a user