-
Notifications
You must be signed in to change notification settings - Fork 19
Implement an indeterminate state for the progress bar #2200
Conversation
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.
small nitpicks about the max
prop. in general awesome, looking forward to seeing it integrated in web 🤩
required: false, | ||
default: undefined, | ||
validator: value => { | ||
return value >= 0 |
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.
Doesn't behave correctly:
undefined
is valid but fails in validation- 0 is invalid but succeeds in validation
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.
Ahh right. value > 0
should do the trick though, right? Or am I missing something? 🤔 You can still set undefined
with this validator.
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.
Huh? undefined > 0
evaluates to false
for me
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.
maybe it doesn't trigger the validator at all since it's the default. that might be...
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.
maybe it doesn't trigger the validator at all since it's the default. that might be...
Yes that's what I meant :D The check itself would return false
of course
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.
ok then 😁
Kudos, SonarCloud Quality Gate passed! |
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.
nice 🤩
Description
We've added an indeterminate state to the progress bar.
I've decided to build the indeterminate state myself (okay, with quite some help from StackOverflow :D) because the integration of Vuetify is a bit more complex than I anticipated. We can still do this later if neccessary.
Related Issue
Needed for owncloud/web#7105
Screenshots (if appropriate):
Types of changes