-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Replace plain input fields with NcTextField fields and NcMultiSelect … #38839
Replace plain input fields with NcTextField fields and NcMultiSelect … #38839
Conversation
@jancborchardt @nimishavijay |
I believe the name needs to be destructured with something like 👇 async createGroup({ name: gid }) {
Since limit for NcSelect applies to dropdown options rather than selected options, as seen in |
Thanks! I've tried it before too, but used wrong attr: options instead of value. It works now, but we probably should do something with styles (but not in this PR): |
Regarding adding a new group there are several problems:
Thanks @ShGKme for investigation! But still have no idea how to fix that problem ;( |
Some notes: 1 - Not a big problem, just a difference with We can either call 2 -
Sorry, I was a bit not accurate. I meant, the internal selected list (selected groups) in Combination of 2 + 3 + 4 - no support of async tag creation The problem is that So if don't use The simplest solution is to check if it is a real group object, aka async addUserGroup(group) {
if (group.id === undefined) {
// This is NcSelect's internal value for a new inputted group name
// Ignore
return
}
// Add the user to the group
} This solution should work but looks dirty and implicit. I'd explicitly mark the being inputted option as temp/being created using <NcSelect
:create-option="(value) => ({ name: value, isCreating: true })"
@option:selected="addGroup($event.at(-1))"
/> async addUserGroup(group) {
if (group.isCreating) {
// This is NcSelect's internal value for a new inputted group name
// Ignore
return
}
// Add the user to the group
} An alternative solution could be: to drop using |
@JuliaKirschenheuter it looks great! Much better now :) Some minor enhancements:
They can also be in a follow up PR! The changes here look good! :) |
Dear @nimishavijay I'm very sorry, could you please make a new Issue for this 2 improvements? This implementation has already taken more then planned ;( If it would't be so, i would fix them here. I've created an issue with improvements: #39002 |
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.
Nitpick, but good otherwise.
4448272
to
b113afa
Compare
b113afa
to
cc1498b
Compare
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.
👍
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.
Drone error is related because it looks for the multiselect instead of the select, so the acceptance tests need to be adjusted, this needs to be ported to NcSelect:
|
yes, it is known. I've tried to fix that problem here #37870, but still had problems with a table itself and had to revert this PR. But that is known and will be fixed. |
I guess this rule:
|
no, unfortunately not. Please look in master, there is a same problem. |
dfd5519
to
cf82034
Compare
…fields with NcSelect fields Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2cdbbcc
to
9b3764d
Compare
…fields with NcSelect fields Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
f74f922
to
3fba4c5
Compare
There is still the issue with the password change, I verified it works locally.
(Maybe we should switch the settings tests also to cypress in the future, as it seems to be easier to adjust.) |
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Replace plain input fields with NcTextField fields and NcMultiSelect fields with NcSelect fields
NcMultiselect
withNcSelect
for UserRow #38145Summary
Before:
After:
Also added notifications after
displaty name
,password
andemail
were changed.TODO
:limit
prop onNcSelect
is just not working)Checklist