コード例 #1
0
ファイル: ProjectList.cs プロジェクト: koderi-dp/Code.Hub
        protected override async Task OnInitializedAsync()
        {
            if (!(await UserService.IsUserAdmin()))
            {
                UriHelper.NavigateTo(@"\worklogs");
            }

            Input.IncludeOrganizations = true;
            Input.IncludeDisabled      = true;
            Organizations = await OrganizationsService.GetOrganizations();
            await Refresh();
        }
コード例 #2
0
        public async Task LoadOrganizations()
        {
            Organizations = await OrganizationsService.GetOrganizations();

            StateHasChanged();

            var found = Organizations.Find(s => s.Name.Equals("CODE101", StringComparison.InvariantCultureIgnoreCase));

            if (found != null)
            {
                await OrganizationChanged(found.Id);

                StateHasChanged();
            }
        }
コード例 #3
0
        public async Task LoadOrganizations()
        {
            Organizations = await OrganizationsService.GetOrganizations();

            StateHasChanged();
        }