Beispiel #1
0
        public async Task LoadEpic(int id)
        {
            EpicEntity = await EpicsService.GetEpicOrNull(id);

            if (EpicEntity.Id != 0)
            {
                await SelectOrganization(EpicEntity.Project.OrganizationId);
            }
        }
Beispiel #2
0
        private async void DeleteInternal(ModalResult modalResult)
        {
            if (!modalResult.Cancelled)
            {
                var isDeleted = await EpicsService.DeleteEpic((int)modalResult.Data);

                if (isDeleted)
                {
                    await Refresh();

                    StateHasChanged();
                }
                else
                {
                    ToastService.ShowToast("Unable to delete! Work logs exists on this epic!", ToastLevel.Error);
                }
            }

            Modal.OnClose -= DeleteInternal;
        }
Beispiel #3
0
        public async Task Refresh()
        {
            Epics = await EpicsService.GetEpics(EpicsInput);

            StateHasChanged();
        }
Beispiel #4
0
        public async Task SaveOrganization()
        {
            EpicEntity = await EpicsService.CreateOrEdit(EpicEntity);

            Done();
        }