-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move card to another board #1242
Conversation
Signed-off-by: Jakob <[email protected]>
Hm, so either we refactor the store to store all stacks and just return the ones related to the current board id or we just do a temporary api request to fetch the stacks from the foreign board in the modal component when trying to move. I think the second approach would be fine for now, since we do not really need the stack list for any other part of the app. |
Signed-off-by: Jakob <[email protected]>
@juliushaertl |
@skjnldsv deck/src/components/cards/CardItem.vue Lines 114 to 134 in 27b8c79
I don't get the stacks on the UI, but a console.log in line 132 shows me the values. Thanks! |
src/components/cards/CardItem.vue
Outdated
} | ||
|
||
let url = OC.generateUrl('/apps/deck/stacks/' + this.selectedBoard.id) | ||
axios.get(url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use try...catch instead of chaining .then and .catch :)
With async/await
This will help you figuring things out :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you do not want to use a request in a computed.
Either load it once on beforeMount and store the results in a local data, or use the dedicated multiselect asynchronous method https://vue-multiselect.js.org/#sub-asynchronous-select
@jakobroehrl Would be cool if you could try assigning labels to represent the state of the pr, that way it is easier to see in the overview if they need some attention for reviewing. 😉 Edit: And the 1.0.0 milestone, so we don't miss one of the awesome features you do in the changelog when releasing. |
Signed-off-by: Jakob <[email protected]>
Signed-off-by: Jakob <[email protected]>
@juliushaertl Could you review please and merge if everything is fine? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if we could do some UI polishing to the modal before merging:
- Button alignment (see other comments)
- Add spacing to the multiselect boxes
- Give the modal a more decent size, currently it looks way to big for the two options we have
Signed-off-by: Jakob <[email protected]>
@@ -248,4 +296,13 @@ export default { | |||
color: transparent; | |||
} | |||
} | |||
|
|||
.modal__content { | |||
width: 25vw; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A proper max-width/max-height would be good for small screen sizes
.modal__content button{ | ||
float: right; | ||
|
||
.multiselect { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.multiselect is not inside the button ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
c4d7852
to
78fa732
Compare
78fa732
to
dd27284
Compare
Signed-off-by: Jakob <[email protected]>
dd27284
to
a6bdf07
Compare
@juliushaertl
How can I retrieve the stacks from another board?
In the stacks store are only the stacks from the current board.
Thanks!