Compare commits

...

3 Commits

Author SHA1 Message Date
Stanislav Lunyachek
549250cdc0 feat: Add header styles inclusion 2025-03-05 12:14:42 -03:00
Dima Alipov
15b5d171fe fix: response with corrupted attached file for Quince 2024-12-18 12:59:56 +03:30
Dima Alipov
8437a17c07 fix: incorrect message for locking 2024-12-03 17:30:55 +03:30
4 changed files with 4 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ $fa-font-path: "~font-awesome/fonts";
$input-focus-box-shadow: $input-box-shadow; // hack to get upgrade to paragon 4.0.0 to work
@import "~@edx/frontend-component-footer/dist/_footer";
@import "~@edx/frontend-component-header/dist/index";
#root {
display: flex;

View File

@@ -19,7 +19,7 @@ export const ErrorBanner = ({ actions, headingMessage, children }) => {
return (
<Alert variant="danger" icon={Info} actions={actionButtons}>
<Alert.Heading>
<FormattedMessage {...headingMessage} />
{headingMessage ? <FormattedMessage {...headingMessage} /> : null}
</Alert.Heading>
{children}
</Alert>

View File

@@ -16,7 +16,7 @@ import ReviewError from './ReviewError';
*/
export class LockErrors extends React.Component {
get errorProp() {
if (this.props.errorStatus === ErrorStatuses.forbidden) {
if (this.props.errorStatus === ErrorStatuses.conflict) {
return {
heading: messages.errorLockContestedHeading,
message: messages.errorLockContested,

View File

@@ -42,7 +42,7 @@ describe('LockErrors component', () => {
expect(el.instance().render()).toMatchSnapshot();
});
test('snapshot: error with conflicted lock', () => {
el.setProps({ errorStatus: ErrorStatuses.forbidden });
el.setProps({ errorStatus: ErrorStatuses.conflict });
expect(el.instance().render()).toMatchSnapshot();
});
});