Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

i5o
Copy link
Contributor

@i5o i5o commented Dec 11, 2014

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

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
@godiard
Copy link
Contributor

godiard commented Dec 18, 2014

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?

@i5o i5o added this to the 0.106 milestone Dec 18, 2014
@godiard
Copy link
Contributor

godiard commented Dec 23, 2014

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()
Copy link
Contributor

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?

@samdroid-apps
Copy link
Contributor

This patch currently defaults to the activity not being shareable. Is that what we want? @godiard @i5o

samdroid-apps added a commit to samdroid-apps/sugar that referenced this pull request Mar 29, 2015
@samdroid-apps
Copy link
Contributor

I merged this 10 days ago... But I forgot to say:

Merged!

@i5o i5o reopened this Apr 8, 2015
@i5o
Copy link
Contributor Author

i5o commented Apr 8, 2015

@samdroid-apps you merged #446 :P

@godiard
Copy link
Contributor

godiard commented Apr 8, 2015

Need more work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants