fix: load the list tasks only after the list itself was loaded #1251

Merged
konrad merged 7 commits from fix/load-list-first into main 2022-03-27 19:56:57 +00:00
Owner

Currently, when opening a list sometimes the tasks are shown before the list itself is loaded. Because the list contains the rights, this means no edit buttons etc are available at that point which is pretty confusing.

This PR ensures the list-specific view is loaded only after the list itself is loaded.

Currently, when opening a list sometimes the tasks are shown before the list itself is loaded. Because the list contains the rights, this means no edit buttons etc are available at that point which is pretty confusing. This PR ensures the list-specific view is loaded only after the list itself is loaded.
konrad added 2 commits 2021-12-26 17:50:16 +00:00
konrad requested review from dpschen 2021-12-26 17:50:23 +00:00
konrad reviewed 2021-12-26 17:50:56 +00:00
@ -147,0 +150,4 @@
const listFromStore = this.$store.getters['lists/getListById'](listData.id)
if (listFromStore !== null) {
this.$store.commit(BACKGROUND, null)
this.$store.commit(CURRENT_LIST, listFromStore)
Author
Owner

I feel like I did this before in some other PR?

@dpschen Will this conflict with #816?

I feel like I did this before in some other PR? @dpschen Will this conflict with #816?
Author
Owner

Maybe a better idea would be to hide the list-specific view with css instead of using v-if? That way the list view could maybe already start loading everything it needs?

Maybe a better idea would be to hide the list-specific view with css instead of using `v-if`? That way the list view could maybe already start loading everything it needs?
konrad added 1 commit 2021-12-26 18:08:22 +00:00
continuous-integration/drone/pr Build is passing Details
9c1464381c
fix: lint
Member

Hi konrad!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://1251-fixload-list-first--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi konrad! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://1251-fixload-list-first--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
Author
Owner

Let's wait with this until #816 is merged.

Let's wait with this until #816 is merged.
dpschen refused to review 2022-02-15 17:11:25 +00:00
Member

@konrad Does this still make sense, now that #816 is merged?

@konrad Does this still make sense, now that #816 is merged?
Author
Owner

@dpschen I think it does. The issue I initially set out to solve with this PR is still present.

@dpschen I think it does. The issue I initially set out to solve with this PR is still present.
konrad added 3 commits 2022-03-27 16:39:33 +00:00
konrad added 1 commit 2022-03-27 16:52:18 +00:00
continuous-integration/drone/pr Build is passing Details
824f8cd9b1
fix: lint
konrad merged commit 7f56a3537c into main 2022-03-27 19:56:57 +00:00
konrad deleted branch fix/load-list-first 2022-03-27 19:56:57 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.