mirror of
https://github.com/bitwarden/mobile
synced 2025-12-16 00:03:22 +00:00
* [PM-2658] Settings Reorganization Init (#2697) * PM-2658 Started settings reorganization (settings main + vault + about) * PM-2658 Added settings controls based on templates and implemented OtherSettingsPage * PM-2658 Fix format * [PM-3512] Settings Appearance (#2703) * PM-3512 Implemented new Appearance Settings * PM-3512 Fix format * [PM-3510] Implement Account Security Settings view (#2714) * PM-3510 Implemented Security settings view * PM-3510 Fix format * PM-3510 Added empty placeholder to pending login requests and also improved a11y on security settings view. * PM-3511 Implemented autofill settings view (#2735) * [PM-3695] Add Connect to Watch to Other settings (#2736) * PM-3511 Implemented autofill settings view * PM-3695 Add Connect to watch setting to other settings view * [PM-3693] Clear old Settings approach (#2737) * PM-3511 Implemented autofill settings view * PM-3693 Remove old Settings approach * PM-3845 Fix default dark theme description verbiage (#2759) * PM-3839 Fix allow screen capture and submit crash logs to init their state when the page appears (#2760) * PM-3834 Fix dialogs strings on settings (#2758) * [PM-3834] Fix import items link (#2782) * PM-3834 Fix import items link * PM-3834 Fix import items link, removed old link. * [PM-4092] Fix vault timeout policies on new Settings (#2796) * PM-4092 Fix vault timeout policy on settings for disabling controls and reset timeout when surpassing maximum * PM-4092 Removed testing hardcoding of policy data
135 lines
6.5 KiB
XML
135 lines
6.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<pages:BaseContentPage
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
xmlns:xct="http://xamarin.com/schemas/2020/toolkit"
|
|
x:Class="Bit.App.Pages.LoginPasswordlessRequestsListPage"
|
|
xmlns:pages="clr-namespace:Bit.App.Pages"
|
|
x:DataType="pages:LoginPasswordlessRequestsListViewModel"
|
|
xmlns:models="clr-namespace:Bit.Core.Models.Response;assembly=BitwardenCore"
|
|
xmlns:core="clr-namespace:Bit.Core;assembly=BitwardenCore"
|
|
xmlns:controls="clr-namespace:Bit.App.Controls"
|
|
xmlns:u="clr-namespace:Bit.App.Utilities"
|
|
Title="{Binding PageTitle}">
|
|
|
|
<ContentPage.BindingContext>
|
|
<pages:LoginPasswordlessRequestsListViewModel />
|
|
</ContentPage.BindingContext>
|
|
|
|
<ContentPage.ToolbarItems>
|
|
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1" />
|
|
</ContentPage.ToolbarItems>
|
|
|
|
<ContentPage.Resources>
|
|
<ResourceDictionary>
|
|
<u:DateTimeConverter x:Key="dateTime" />
|
|
<u:InverseBoolConverter x:Key="inverseBool" />
|
|
<xct:ItemSelectedEventArgsConverter x:Key="ItemSelectedEventArgsConverter" />
|
|
<controls:SelectionChangedEventArgsConverter x:Key="SelectionChangedEventArgsConverter" />
|
|
<DataTemplate
|
|
x:Key="loginRequestTemplate"
|
|
x:DataType="models:PasswordlessLoginResponse">
|
|
<Grid
|
|
Padding="10, 0"
|
|
RowSpacing="0"
|
|
RowDefinitions="*, Auto, *, 10"
|
|
ColumnDefinitions="*, *"
|
|
AutomationId="LoginRequestCell">
|
|
<Label
|
|
Text="{u:I18n FingerprintPhrase}"
|
|
FontSize="Small"
|
|
Padding="0, 10, 0 ,0"
|
|
FontAttributes="Bold"/>
|
|
<controls:MonoLabel
|
|
FormattedText="{Binding FingerprintPhrase}"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
FontSize="Small"
|
|
Padding="0, 5, 0, 10"
|
|
VerticalTextAlignment="Center"
|
|
TextColor="{DynamicResource FingerprintPhrase}"
|
|
AutomationId="FingerprintPhraseLabel" />
|
|
<Label
|
|
Grid.Row="2"
|
|
HorizontalOptions="Start"
|
|
HorizontalTextAlignment="Start"
|
|
Text="{Binding RequestDeviceType}"
|
|
StyleClass="list-header-sub"
|
|
AutomationId="RequestDeviceLabel" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
HorizontalOptions="End"
|
|
HorizontalTextAlignment="End"
|
|
Text="{Binding CreationDate, Converter={StaticResource dateTime}}"
|
|
StyleClass="list-header-sub"
|
|
AutomationId="RequestDateLabel" />
|
|
<BoxView
|
|
StyleClass="list-section-separator-top, list-section-separator-top-platform"
|
|
VerticalOptions="End"
|
|
Grid.Row="3"
|
|
Grid.ColumnSpan="2"/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
|
|
<StackLayout
|
|
x:Key="mainLayout"
|
|
x:Name="_mainLayout"
|
|
Padding="0, 10">
|
|
<RefreshView
|
|
IsRefreshing="{Binding IsRefreshing}"
|
|
Command="{Binding RefreshCommand}"
|
|
VerticalOptions="FillAndExpand"
|
|
BackgroundColor="{DynamicResource BackgroundColor}">
|
|
<StackLayout>
|
|
<Image
|
|
x:Name="_emptyPlaceholder"
|
|
Source="empty_login_requests"
|
|
HorizontalOptions="Center"
|
|
WidthRequest="160"
|
|
HeightRequest="160"
|
|
Margin="0,70,0,0"
|
|
IsVisible="{Binding HasLoginRequests, Converter={StaticResource inverseBool}}"
|
|
AutomationProperties.IsInAccessibleTree="True"
|
|
AutomationProperties.Name="{u:I18n NoPendingRequests}" />
|
|
<controls:CustomLabel
|
|
StyleClass="box-label-regular"
|
|
Text="{u:I18n NoPendingRequests}"
|
|
FontAttributes="{OnPlatform iOS=Bold}"
|
|
FontWeight="500"
|
|
HorizontalTextAlignment="Center"
|
|
Margin="14,10,14,0"/>
|
|
<controls:ExtendedCollectionView
|
|
ItemsSource="{Binding LoginRequests}"
|
|
ItemTemplate="{StaticResource loginRequestTemplate}"
|
|
SelectionMode="Single"
|
|
IsVisible="{Binding HasLoginRequests}"
|
|
ExtraDataForLogging="Login requests page" >
|
|
<controls:ExtendedCollectionView.Behaviors>
|
|
<xct:EventToCommandBehavior
|
|
EventName="SelectionChanged"
|
|
Command="{Binding AnswerRequestCommand}"
|
|
EventArgsConverter="{StaticResource SelectionChangedEventArgsConverter}" />
|
|
</controls:ExtendedCollectionView.Behaviors>
|
|
</controls:ExtendedCollectionView>
|
|
</StackLayout>
|
|
</RefreshView>
|
|
<controls:IconLabelButton
|
|
VerticalOptions="End"
|
|
Margin="10,0"
|
|
Icon="{Binding Source={x:Static core:BitwardenIcons.Trash}}"
|
|
Label="{u:I18n DeclineAllRequests}"
|
|
ButtonCommand="{Binding DeclineAllRequestsCommand}"
|
|
IsVisible="{Binding HasLoginRequests}"
|
|
AutomationId="DeleteAllRequestsButton" />
|
|
</StackLayout>
|
|
</ResourceDictionary>
|
|
</ContentPage.Resources>
|
|
|
|
<ContentView
|
|
x:Name="_mainContent">
|
|
</ContentView>
|
|
|
|
</pages:BaseContentPage>
|
|
|