diff --git a/packages/neos-ui-validators/src/Count/index.spec.js b/packages/neos-ui-validators/src/Count/index.spec.js index a6758dcef9..4e87a02df3 100644 --- a/packages/neos-ui-validators/src/Count/index.spec.js +++ b/packages/neos-ui-validators/src/Count/index.spec.js @@ -1,4 +1,9 @@ import countValidator from './index'; +import {setupI18n} from "@neos-project/neos-ui-i18n"; + +beforeAll(() => { + setupI18n('en-US', 'one,other', {}); +}); test('2 element object should be valid for min:0 max: 10', () => { const validatorOptions = { diff --git a/packages/neos-ui-validators/src/NumberRange/index.spec.js b/packages/neos-ui-validators/src/NumberRange/index.spec.js index 0edb94646d..1b1c5cb0bd 100644 --- a/packages/neos-ui-validators/src/NumberRange/index.spec.js +++ b/packages/neos-ui-validators/src/NumberRange/index.spec.js @@ -1,4 +1,9 @@ import numberRangeValidator from './index'; +import {setupI18n} from "@neos-project/neos-ui-i18n"; + +beforeAll(() => { + setupI18n('en-US', 'one,other', {}); +}); test('0 for min: 0 max: 10 should be valid', () => { const validatorOptions = { diff --git a/packages/neos-ui/src/Containers/PrimaryToolbar/PublishDropDown/index.js b/packages/neos-ui/src/Containers/PrimaryToolbar/PublishDropDown/index.js index 2da367cc23..bc9245d28f 100644 --- a/packages/neos-ui/src/Containers/PrimaryToolbar/PublishDropDown/index.js +++ b/packages/neos-ui/src/Containers/PrimaryToolbar/PublishDropDown/index.js @@ -9,6 +9,7 @@ import {Badge, Icon, DropDown} from '@neos-project/react-ui-components'; import {translate} from '@neos-project/neos-ui-i18n'; import {actions, selectors} from '@neos-project/neos-ui-redux-store'; import {PublishingMode, PublishingScope} from '@neos-project/neos-ui-redux-store/src/CR/Publishing'; +import {neos} from '@neos-project/neos-ui-decorators'; const {publishableNodesSelector, publishableNodesInDocumentSelector, baseWorkspaceSelector, isWorkspaceReadOnlySelector, personalWorkspaceNameSelector} = selectors.CR.Workspaces; @@ -16,6 +17,7 @@ import AbstractButton from './AbstractButton/index'; import WorkspaceSelector from './WorkspaceSelector/index'; import style from './style.module.css'; +@neos() @connect(state => ({ isSaving: state?.ui?.remote?.isSaving, isPublishing: state?.cr?.publishing?.mode === PublishingMode.PUBLISH,