Refactor how user avatar is updated
Updating the user avatar was done by simply replacing the URL of the avatar elements. This is potentially tricky if the underlying Avatar implementation changes (and also was done via the test-id). Let's trigger a custom event instead once a user uploads a new avatar.
显示
- app/assets/javascripts/profile/edit/components/profile_edit_app.vue 6 个添加, 15 个删除.../javascripts/profile/edit/components/profile_edit_app.vue
- app/assets/javascripts/profile/profile.js 3 个添加, 6 个删除app/assets/javascripts/profile/profile.js
- app/assets/javascripts/super_sidebar/components/user_menu.vue 14 个添加, 1 个删除...assets/javascripts/super_sidebar/components/user_menu.vue
- spec/features/uploads/user_uploads_avatar_to_profile_spec.rb 4 个添加, 2 个删除spec/features/uploads/user_uploads_avatar_to_profile_spec.rb
- spec/frontend/profile/edit/components/profile_edit_app_spec.js 4 个添加, 2 个删除...frontend/profile/edit/components/profile_edit_app_spec.js
- spec/frontend/super_sidebar/components/user_menu_spec.js 14 个添加, 0 个删除spec/frontend/super_sidebar/components/user_menu_spec.js
加载中
想要评论请 注册 或 登录