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

Added listener to follow after a reply #6

Closed
wants to merge 3 commits into from

Conversation

petermein
Copy link
Contributor

Added listener to add setting to a user

Added listener to add setting to a user
{
$actor = $event->actor;

if ($actor && $actor->exists && $actor->getPreference('followAfterReply')) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected 1 newline after opening brace; 2 found

@petermein
Copy link
Contributor Author

Referencing: flarum/lang-english#57

@@ -17,8 +19,10 @@ app.initializers.add('subscriptions', function() {
addSubscriptionBadge();
addSubscriptionControls();
addSubscriptionFilter();
console.log('subscription');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh oh ;)

Moved to english keys inside the subscription package
@petermein
Copy link
Contributor Author

As mentioned in the flarum/framework#310 i updated this to include the changes. But currently i added a toggle button for this setting. I don't know what the best option is to toggle this. Or how to fix the ordering. When i use the example code of @tobscure the buttons are nested inside the div of the Notification grid. Which is not ideal.

@tobyzerner tobyzerner self-assigned this Jan 7, 2016
@tobyzerner
Copy link
Contributor

Thanks @petermein! I fixed it up and squash-merged it in. 98276f9

@tobyzerner tobyzerner closed this Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants