stable

Clone or download

Read-only

Enable button [Create PR] if there are branches

Part of story #10409: have a burning parrot git repository view Go to a repository with branches: button should be enabled. Go to a repository without branches: button should NOT be enabled. Go to a fork with branches: button should be enabled. Go to a fork without branches but with branches in the parent repository: button should be enabled. Go to a fork without branches and without branches in the parent repository: button should NOT be enabled. Change-Id: Ice5533191c12c6c2cc59c0efaa1f52640764c2ca

Modified Files

Name
M plugins/git/include/Git/Repository/View/ParentRepositoryPresenter.php +2 −0 Go to diff View file
M plugins/git/include/Git/Repository/View/RepositoryHeaderPresenter.php +2 −0 Go to diff View file
M plugins/git/templates/repository/header.mustache +6 −1 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.class.php +2 −2 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/karma.conf.js +23 −0 Go to diff View file
M plugins/pullrequest/www/scripts/create-pullrequest-button/po/fr.po +5 −1 Go to diff View file
M plugins/pullrequest/www/scripts/create-pullrequest-button/po/template.pot +3 −0 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/src/api/rest-querier.js +28 −0 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/src/app.spec.js +6 −0 Go to diff View file
M plugins/pullrequest/www/scripts/create-pullrequest-button/src/components/CreatePullrequest.vue +28 −2 Go to diff View file
M plugins/pullrequest/www/scripts/create-pullrequest-button/src/index.js +9 −1 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/src/store/actions.js +32 −0 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/src/store/actions.spec.js +77 −0 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/src/store/getters.js +29 −0 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/src/store/getters.spec.js +65 −0 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/src/store/index.js +34 −0 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/src/store/mutations.js +26 −0 Go to diff View file
A plugins/pullrequest/www/scripts/create-pullrequest-button/src/store/state.js +23 −0 Go to diff View file
M plugins/pullrequest/www/scripts/karma.conf.js +2 −2 Go to diff View file
M plugins/pullrequest/www/scripts/package.json +3 −3 Go to diff View file
M plugins/pullrequest/www/scripts/webpack.config.js +7 −1 Go to diff View file