Remove store logic from issue board models
This is part of refactoring issue boards to Vuex (&1278 (closed)) and needs to happen after https://gitlab.com/gitlab-org/gitlab-ce/issues/61293 and https://gitlab.com/gitlab-org/gitlab-ce/issues/61621.
Move any logic that happens in app/assets/javascripts/boards/models/
to a new Vuex store (ideally one function at a time)
Example
save() {
- const entity = this.label || this.assignee || this.milestone;
// ...
- return gl.boardService.createList(entity.id, entityType)
+ return this.vuexStore.dispatch('saveList')
Edited by Inactive Account