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
following category on the category page #2312
Conversation
Thanks for contributing this pull request! Could you please sign our CLA so we can review it? http://www.discourse.org/cla |
very interesting, we always wanted something like this. what happens by default here? looks like the drop down only has overrides? |
Just like the topic-notification-button the default ist "regular", but there is no possibility to remove the notification. This can only be done in the preferences. |
ok good point. I have forgotten the edit-button. Then I'll add the fourth option and remove the text from the button and just leave the glyph. ok? |
now (after the travis hopefully did not find any bugs or failing tests ;) ) there are all 4 options and only the glyph left in the button. |
Can you update the screen shot? @coding-horror any thoughts about this? |
I think it looks fantastic! |
One last thing here, we really need the glyphs next to the text in the drop down (like we have now in the standard dropdown for topic notification levels) |
ok, I'll add them. |
looks good! Regular is simply text no glyph, though I agree if we are using a glyph at the top we have to choose something to put there. |
no problem. I change the glyphs. |
Lets try with the glyph omitted for now. These build failures do not look like they are your fault. Can you merge in latest, it should fix it. |
much better, but one super last thing which is also awesome practice for you :) we essentially have 2 areas of code that are doing exactly the same thing Discourse.CategoryNotificationsButton and Discourse.NotificationsButton Instead we should centralize this and only use Discourse.NotificationsButton passing it in all the differences (which is only the i18n key) That way we don't need to carry around dupe code. Once you do that can you rebase ? |
ohhh, I was so glad that it "somehow" worked ;) Not that easy to get into discourse. |
On 07 May 2014, at 22:14, Dung Quang notifications@github.com wrote:
Yes, it is. |
This is really great. When can we merge this? |
@Catrin Ping! What's your status? This looks great. |
Working on it. I do not want to put everything into the Discourse.NotificationsButton. So my new plan is: Having Discourse.NotificationsButton as a super class and TopicsNotificationsButton and CategoryNotificationsButton below. |
Looking forward to it 👀 let us know how we can help |
Again, let us know how we can help! Do you think this can be done by the end of the week? |
I am so sorry. I could not finish it. Too busy working on a different project (and my kids...). |
OK no problem thanks for letting us know! We'll pick it up from here, I'd really like to get this in. |
I'll finish this. |
I merged this manually and implemented your suggestion to "have Discourse.NotificationsButton as a super class and TopicsNotificationsButton and CategoryNotificationsButton below." This feature is very handy! |
Hey Neil, great and great code :) Thank so much you for taking over. On 30 May 2014, at 00:28, Neil Lalonde notifications@github.com wrote:
|
I added a dropdown button on the category page where a logged in user can change the notification level of the category.