mirror of
https://github.com/bitwarden/mobile
synced 2025-12-22 11:13:49 +00:00
collections page
This commit is contained in:
37
src/App/Pages/Vault/CollectionsPage.xaml.cs
Normal file
37
src/App/Pages/Vault/CollectionsPage.xaml.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
public partial class CollectionsPage : BaseContentPage
|
||||
{
|
||||
private CollectionsPageViewModel _vm;
|
||||
|
||||
public CollectionsPage(string cipherId)
|
||||
{
|
||||
InitializeComponent();
|
||||
_vm = BindingContext as CollectionsPageViewModel;
|
||||
_vm.Page = this;
|
||||
_vm.CipherId = cipherId;
|
||||
SetActivityIndicator();
|
||||
}
|
||||
|
||||
protected override async void OnAppearing()
|
||||
{
|
||||
base.OnAppearing();
|
||||
await LoadOnAppearedAsync(_scrollView, true, () => _vm.LoadAsync());
|
||||
}
|
||||
|
||||
protected override void OnDisappearing()
|
||||
{
|
||||
base.OnDisappearing();
|
||||
}
|
||||
|
||||
private async void Save_Clicked(object sender, System.EventArgs e)
|
||||
{
|
||||
if(DoOnce())
|
||||
{
|
||||
await _vm.SubmitAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user