stable

Clone or download

Read-only

Get form modal to replace token

This is part of story #17182: reference tuleap artifacts in gitlab merge requests How to test: - Integrate Gitlab repository - To be git admin - Go to git view - On the integrated repository, click on cog icon => A new item in dropdown is "edit access token" |_ click on this item => A new modal opens and ask you a new token |_ Enter a bad token -> Error message |_ Change dom and submit with empty token -> Error message |_ Submit with a good token -> Nothing append for the moment /!\ In next patch, a confirmation message will be displayed and API will be called to update token Change-Id: Id4e6448207d5ec52a71f5544373ce979a84e989a

Modified Files

Name
M plugins/git/package-lock.json +21 −0 Go to diff View file
M plugins/git/package.json +3 −1 Go to diff View file
M plugins/git/scripts/repositories/po/fr.po +31 −0 Go to diff View file
M plugins/git/scripts/repositories/src/components/App.vue +3 −0 Go to diff View file
M plugins/git/scripts/repositories/src/components/GitRepository.test.js +54 −1 Go to diff View file
M plugins/git/scripts/repositories/src/components/GitRepository.vue +26 −2 Go to diff View file
A plugins/git/scripts/repositories/src/components/GitlabModal/EditAccessTokenGitlabModal/AccessTokenFormModal.test.ts +245 −0 Go to diff View file
A plugins/git/scripts/repositories/src/components/GitlabModal/EditAccessTokenGitlabModal/AccessTokenFormModal.vue +195 −0 Go to diff View file
A plugins/git/scripts/repositories/src/components/GitlabModal/EditAccessTokenGitlabModal/EditAccessTokenGitlabModal.test.ts +77 −0 Go to diff View file
A plugins/git/scripts/repositories/src/components/GitlabModal/EditAccessTokenGitlabModal/EditAccessTokenGitlabModal.vue +87 −0 Go to diff View file
M plugins/git/scripts/repositories/src/gitlab/gitlab-credentials-helper.test.ts +26 −4 Go to diff View file
M plugins/git/scripts/repositories/src/gitlab/gitlab-credentials-helper.ts +16 −2 Go to diff View file
M plugins/git/scripts/repositories/src/store/actions.js +22 −2 Go to diff View file
M plugins/git/scripts/repositories/src/store/actions.test.js +92 −0 Go to diff View file
M plugins/git/scripts/repositories/src/store/mutations.js +6 −0 Go to diff View file
M plugins/git/scripts/repositories/src/store/state.js +2 −0 Go to diff View file