protected async Task ExportAsExcel()
        {
            var token = await ConfigurationEntryService.GetAccessToken();

            await JSRuntime.Log(token);

            await JSRuntime.InvokeVoidAsync("interop.downloadFile", ConfigurationEntryService.GetExportExcelUrl(), token, "Settings.xlsx");
        }
Example #2
0
        public async void ConfirmedAddEdit(ConfigurationEntryModel model)
        {
            await(model.Id == Guid.Empty
                ? ConfigurationEntryService.CreateAsync(model)
                : ConfigurationEntryService.UpdateAsync(model));
            AddEditDialog.Close();
            ConfigurationEntries = await ConfigurationEntryService.GetListAsync();

            StateHasChanged();
        }
Example #3
0
        public async void ConfirmedDeleteSetting()
        {
            Logger.LogWarning($"Deleting Entry: {DeletingConfigurationEntry.Id}");

            await ConfigurationEntryService.DeleteAsync(DeletingConfigurationEntry.Id);

            DeleteDialog.Close();

            Logger.LogWarning($"Deleted Entry: {DeletingConfigurationEntry.Id}");

            ConfigurationEntries = await ConfigurationEntryService.GetListAsync();

            StateHasChanged();
        }
Example #4
0
 protected override async Task OnInitializedAsync()
 {
     ConfigurationEntries = await ConfigurationEntryService.GetListAsync();
 }