-
- Downloads
"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "90c1dbdc78ba1544a47925c129235f1b1706283d"
Fix discarding renamed directories in Web IDE
**How?** In the discard, we revert renames by calling the `renameEntry` action. Unfortunately this action is not sufficient to rename an entry. In the new_dropdown modal component you'll see that there's a call to createTempEntry for the parent directory... The solution is to move that createTempEntry into the renameEntry action so that this action is properly encapsulated.
parent
8cef97d0
No related branches found
No related tags found
Pipeline #109114451 passed with warnings
Stage: prepare
Stage: test
Stage: post-test
Stage: review-prepare
Stage: review
Stage: qa
Stage: post-qa
Showing
- app/assets/javascripts/ide/components/new_dropdown/modal.vue 5 additions, 16 deletionsapp/assets/javascripts/ide/components/new_dropdown/modal.vue
- app/assets/javascripts/ide/stores/actions.js 49 additions, 50 deletionsapp/assets/javascripts/ide/stores/actions.js
- changelogs/unreleased/195776-fix-discard-rename-web-ide.yml 5 additions, 0 deletionschangelogs/unreleased/195776-fix-discard-rename-web-ide.yml
- locale/gitlab.pot 0 additions, 3 deletionslocale/gitlab.pot
- spec/javascripts/ide/components/new_dropdown/modal_spec.js 0 additions, 35 deletionsspec/javascripts/ide/components/new_dropdown/modal_spec.js
- spec/javascripts/ide/stores/actions_spec.js 206 additions, 35 deletionsspec/javascripts/ide/stores/actions_spec.js
Please register or sign in to comment