feat: settings background script setup #2104
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#2104
Loading…
Reference in New Issue
No description provided.
Delete Branch "dpschen/frontend:feature/feat-settings-background-script-setup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is already a bit older. I did the conversion without testing. So probably there are some bugs.
Hi dpschen!
Thank you for creating a PR!
I've deployed the changes of this PR on a preview environment under this URL: https://2104-feature-feat-settings-background--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!
Can you investigate the CI failure? It seems unrelated to the changes you made in the PR but it only happens here.
Looks like this was caused by recent changes in the api, fixed in
a073cfac66
- can you rebase on main?1edd1f0a92
to4c1422e635
Looks like the styling for unsplash background seelction is now broken:
And there's a "create" button on the bottom right corner:
(not sure if that hasn't been there before)
Other than that it seems to work fine.
Okay looks like these issues already exist on the main branch, interesting.
Would you mind taking a look into fixing these? I think it makes sense to merge this PR first or base the changes upon this one.
Will investigate! 👍
4c1422e635
toe17faaa7b2
The general issues with styling in the modal should be solved by #2109.
This branch now is based on that fix.
I'm not sure about how the buttons should be though.
Can you explain what is wrong here / should be changed or fixed?
WIP: feat: settings background script setupto feat: settings background script setup@ -20,3 +20,3 @@
<x-button
:loading="backgroundUploadService.loading"
@click="$refs.backgroundUploadInput.click()"
@click="backgroundUploadInput?.click()"
Does this generate an error message when
backgroundUploadInput
is undefined or null? Or is vue smart enough to figure this out and prevent an error?I think this compiles to
@click="null"
Thanks!
Mostly it's the create button which does not make sense here IMHO. I think we can get rid of it completely.
@konrad
The button is provied by the CreateEdit component.
How would you adjust that in order to optionally show that button?
@dpschen Even though a bit ugly the best way is probably to add another prop to the component.
I always thought that you could check the attrs if
onPrimary
is set. I tested that and it was never set. 🤷♂️Isn't
onPrimary
an event handler? (didn't look at the code, this is from memory)I thought of adding another property
showPrimaryActionButton
even though that's a bit ugly.It is. But based on this explanation the attrs object should contain
onPrimary
.e17faaa7b2
to5e3eece3cc
5e3eece3cc
to84168a98e4
84168a98e4
to0dcb433196
Thanks!