stable

Clone or download

Read-only

refactor: Use events to disable submit while pasting an image

How to test: No functional change for image drag/drop in the artifact modal: - when I upload a large image (or my connection is slow), the "Submit" button of the artifact modal will be disabled (now with a title attribute explaining why). - When the upload fails or succeeds, the Submit button will be enabled again. - If I close the modal while the button is disabled, and I open a new modal (or reopen the same artifact), the Submit button will be enabled again. part of request #31111: Remove global states in the artifact modal Change-Id: I473844c738d3b6acfb5bc16622861405bf1d3d17

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/po/fr_FR.po +6 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/po/pt_BR.po +3 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/common/RichTextEditor.test.ts +17 −18 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/common/RichTextEditor.ts +9 −10 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/common/is-uploading-in-ckeditor-state.ts +0 −30 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/common/FormattedTextController.ts +17 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/gettext-catalog.ts +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +2 −9 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.test.js +2 −25 Go to diff View file