Example #1
0
        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>();
        }
Example #2
0
 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;
     }
 }
Example #3
0
 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));