Skip to content

Commit

Permalink
Release v1.0.0 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaSedyx authored Mar 19, 2021
1 parent 6e42e85 commit f78b064
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

## (in progress)

### Stories
## [1.0.0](https://github.com/folio-org/ui-plugin-bursar-export/tree/v1.0.0) (2021-03-19)

* Project Setup: ui-plugin-bursar-export. Refs UIPBEX-1.
* Bursar exports configuration form (UI). Refs UIPBEX-5.
* Enable FOLIO to define FTP file destinations for automated exports. Refs UIPBEX-2.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"pluginType": "bursar-export",
"displayName": "ui-plugin-bursar-export.meta.title",
"okapiInterfaces": {
"users": "15.0"
"users": "15.0",
"data-export-spring": "1.0"
},
"stripesDeps": [
"@folio/stripes-acq-components"
Expand Down
8 changes: 6 additions & 2 deletions src/BursarExports.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const BursarExports = () => {
renderEnd={
<Button
buttonStyle="primary mega"
disabled={bursarConfigFormState?.pristine || bursarConfigFormState?.submitting}
disabled={bursarConfigFormState?.pristine || bursarConfigFormState?.submitting || isLoading}
onClick={saveBursarConfig}
type="submit"
>
Expand All @@ -69,7 +69,11 @@ export const BursarExports = () => {

if (isLoading) {
return (
<LoadingPane defaultWidth="fill" />
<LoadingPane
paneTitle={formatMessage({ id: 'ui-plugin-bursar-export.bursarExports' })}
defaultWidth="fill"
footer={paneFooter}
/>
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/apiQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const bursarType = 'BURSAR_FEES_FINES';
export const useBursarConfigQuery = (key = bursarConfigKey) => {
const ky = useOkapiKy();

const { isLoading, data = {} } = useQuery({
const { isFetching, data = {} } = useQuery({
queryKey: key,
queryFn: async () => {
const kyOptions = {
Expand All @@ -35,7 +35,7 @@ export const useBursarConfigQuery = (key = bursarConfigKey) => {
});

return {
isLoading,
isLoading: isFetching,
bursarConfig: {
...data,
weekDays: data.weekDays?.reduce((acc, weekDay) => ({
Expand Down

0 comments on commit f78b064

Please sign in to comment.