Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(export-dialog): was not closed when title was missing #1247

Merged
merged 1 commit into from
Feb 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion client/src/state/H5PEditor/H5PEditorReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ export default function tabReducer(
loadingIndicator: false
}
: tab
)
),
showExportDialog: false
};

case H5P_LOADPLAYERCONTENT_REQUEST:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { showReportDialog } from '@sentry/browser';
import shortid from 'shortid';

import { default as reducer, initialState } from '../H5PEditorReducer';
Expand Down Expand Up @@ -114,7 +115,8 @@ describe('H5PEDITOR_EXPORT_ERROR', () => {
...testTab,
loadingIndicator: true
}
]
],
showExportDialog: true
},
{
payload: {
Expand All @@ -128,4 +130,9 @@ describe('H5PEDITOR_EXPORT_ERROR', () => {
expect(state.tabList[0].loadingIndicator).toBeFalsy();
done();
});

it('closes the export Dialog', (done) => {
expect(state.showExportDialog).toBeFalsy();
done();
});
});