-
Notifications
You must be signed in to change notification settings - Fork 55
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
Cannot modify user settings via WebUI #129
Comments
Debugging: The main cause is that it gets stuck when calling the password dependency, However, the exact reason for this is unknown, it is possible that during the upgrade from Vue2 to Vue3, we missed something, such as some package.json or other components.
|
I created a local patch to bypass this issue, see it below. But I don't think it is a wise or proper solution to completely fix the problem. },
watch: {
user: function (value) {
@@ -298,6 +303,18 @@ export default {
this.form.status = value.Enabled;
this.form.privilege = value.privilege;
},
+ computedForm: {
+ deep: true,
+ handler: function (n, o) {
+ let isDirty = false;
+ if (n.password !== o.password) {
+ isDirty = true;
+ } else if (n.passwordConfirmation !== o.passwordConfirmation) {
+ isDirty = true;
+ }
+ this.isDirty = isDirty;
+ },
+ },
},
validations() {
return {
@@ -324,7 +341,7 @@ export default {
required: requiredIf(function () {
return this.requirePassword();
}),
- sameAsPassword: sameAs('password'),
+ sameAsPassword: sameAs(this.form.password),
},
manualUnlock: {},
},
@@ -387,8 +404,7 @@ export default {
},
requirePassword() {
if (this.newUser) return true;
- if (this.v$.form.password.$dirty) return true;
- if (this.v$.form.passwordConfirmation.$dirty) return true;
+ if (this.isDirty) return true;
return false;
}, |
Does anyone have any information or suggestions about this issue? |
@suryav9724 Can you please check this issue and provide feedback. |
@huyle-anh Yes, your code is working fine except for the validation of sameAsPassword. Please use the below code for the validation; it will work. |
@suryav9724, the code is working fine on Chrome and Safari browsers. But it doesn't work on the Firefox browser. Can you double-check on Firefox browser? |
Describe the bug
After pressing the edit button, the edit user window doesn't show, and the page hangs, can't switch to a different page.
To Reproduce :
user1
user1
to edit user settingsExpected behavior :
Desktop:
The text was updated successfully, but these errors were encountered: