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
Hide 'Invite to <activity>' menu option if the activity cant be shared #434
Conversation
With this changes, the 'Invite to <activity>' option in the buddy menu only show if max_participants is <= 1. max_participants is a field off activity.info, the default is 0 so, if you want you activity sharable set max_participants to one number > 1 Fixes SL#2702
|
Would be good make this change in Sugar 0.106, to make sure all the activities implementing collaboration have the activity.info files updated. Can we tag this pr as approved for 0.106? |
|
Added link to this pr in http://bugs.sugarlabs.org/ticket/2702 and added tag "patch" |
|
|
||
| if not is_unshareable: | ||
| bundle_activity = ActivityBundle(activity.get_bundle_path()) | ||
| self._max_participants = bundle_activity.get_max_participants() |
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.
Why self.? Is this used later?
|
I merged this 10 days ago... But I forgot to say: Merged! |
|
@samdroid-apps you merged #446 :P |
|
Need more work |
With this changes, the 'Invite to ' option in the
buddy menu only show if max_participants is <= 1.
max_participants is a field off activity.info, the default is 0
so, if you want you activity sharable set max_participants
to one number > 1
Fixes SL#2702