stable

Clone or download

Read-only

feat: Remove newly added link

part of story #24969 [modal] add and remove links (replace current artifact link) How to test: - Type an artifact id in the new link field input - Select a matching artifact and click on "Add link" - On the newly added row, click on the "Remove" button - The new link is removed. It is not sent when you submit. Notes: This also changes the button icon for existing links to fa-unlink and the labels to "Unlink / Undo unlink". Change-Id: Ia1703bcebc1f345dc98486c6104da453cd9d6881

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/po/fr_FR.po +9 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/po/pt_BR.po +7 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/NewLinksStore.test.ts +7 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/NewLinksStore.ts +7 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/AddLinkButtonTemplate.test.ts +8 −6 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.test.ts +28 −9 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.ts +13 −9 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.test.ts +8 −6 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkedArtifactTemplate.ts +4 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/NewLinkTemplate.test.ts +74 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/NewLinkTemplate.ts +19 −4 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/DeleteNewLink.ts +24 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/gettext-catalog.ts +3 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +2 −1 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/tests/stubs/DeleteNewLinkStub.ts +36 −0 Go to diff View file