Example #1
0
        protected override async Task OnInitializedAsync()
        {
            await Task.Yield();

            _menu = (await SessionStorage.GetAsync <ExpandedMenu>(nameof(_menu))).Value;

            if (_menu != ExpandedMenu.None)
            {
                SetMenuStateVariables(_menu);
            }

            NavManager.LocationChanged += OnLocationChanged;
        }
Example #2
0
        protected override async Task OnInitializedAsync()
        {
            AccessCode = await SessionStorage.GetAsync <string>(LocalStorageKey.AccessCode);

            Conference = await ConferenceAdminService.Get(Slug, AccessCode);

            IsPublished = Conference.IsPublished;

            Message = await SessionStorage.GetAsync <string>(LocalStorageKey.Notification);

            await SessionStorage.DeleteAsync(LocalStorageKey.Notification);

            PublishButtonText = GetPublishButtonText(Conference.IsPublished);

            HasError = false;
        }