djaodjin / djaodjin-saas

Django application for software-as-service and subscription businesses
Other
564 stars 124 forks source link

Defines profile-container public methods as a subset of user-profile-container #222

Closed smirolo closed 5 years ago

smirolo commented 5 years ago

The user-profile-container (signup) and profile-container (saas) are both used on the same template profile/index.html depending on the type of profile object being browsed. As a result, public methods for both vuejs widget must be compatible. This is the current definitions:

user-profile-container (signup) profile-container (saas)
activate  
deleteProfile deleteProfile
generateKey  
get get
getContact  
imageSelected imageSelected
resetKey  
  saveProfile
  saveProfileWithPicture
updateProfile updateProfile
uploadImage  
validateForm validateForm

1/ Add uploadImage (i.e. uploadProfilePicture) to profile-container (saas) after signup#42 is solved.

2/ Make both versions of updateProfile semantically equivalent.