Disable username field in admin user edit mode#422
Conversation
iammajid
commented
Mar 16, 2026
- Disable the username input field when editing an existing user in admin panel
- Exclude disabled username field from unsaved changes detection
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe UserEditCreate.vue component is modified to disable the username input field when in EDIT mode by binding a disabled attribute to the mode prop condition. The unsaved changes detection logic is updated to exclude the username field from comparison when in EDIT mode, effectively making it read-only during edit operations while preserving change tracking for other fields. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can customize the high-level summary generated by CodeRabbit.Configure the |