protected override async Task OnItemSelectAsync(Options <Library> item) { await base.OnItemSelectAsync(item); AutoSelect = false; Locator.Main.Library = item?.Value; Locator.Main.Scopes = Scopes.From(Managers.Scopes.Get(Locator.Main.User, Locator.Main.Library)); Locator.Main.GoTo <Home>(); }
public override void OnNavigating() { Locator.Main.Library = null; if (Locator.Main.User != null) { FetchItems(); CanCreate = Scopes.From(Managers.Scopes.Get(Locator.Main.User)).Library_All; } }
protected override Options <Library> ProvideOptions(Library item) => Scopes.From(Managers.Scopes.Get(Locator.Main.User, item)).As(s => new Options <Library>(item, s.Library_Read, s.Library_All, s.Library_All, true));