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

Adapt sidebar to TopicStore and Forums #985

Merged
merged 59 commits into from
Jul 31, 2015
Merged

Adapt sidebar to TopicStore and Forums #985

merged 59 commits into from
Jul 31, 2015

Conversation

mjlescano
Copy link
Member

No description provided.

@sachalifs
Copy link
Contributor

  1. This line is no longer valid, as not a regular staff should see the 'create first topic' button, only the forum owner. It's the staff member when multiForum === false

  2. The button link is not correct, it's linking to /admin/topics/create instead of /my-forum/admin/topics/create

@sachalifs
Copy link
Contributor

  1. After updating a topic, when entering again to edit it, the previous version of it is shown (but it is updated on the admin list) multiForum === true
  2. Similar thing happens when un/publishing it. It gets updated on that page, but doesn't show/hide on the forum page

@sachalifs
Copy link
Contributor

3b) Same thing happens on multiForum === false

sachalifs added a commit that referenced this pull request Jul 31, 2015
Adapt sidebar to TopicStore and Forums
@sachalifs sachalifs merged commit 9ca5002 into 1.0.0 Jul 31, 2015
}
});
}

res.json(expose(topicKeys)(topicDoc.toJSON()));
res.json(exposeTopic(topic, req.user));
Copy link
Member

Choose a reason for hiding this comment

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

Hey @slifszyc, @mjlescano is it right to write a response before the topic gets saved? It didn't use to be like this (bejore there used to be res.json(200) inside the callback for the topic.save call.

Copy link
Member Author

Choose a reason for hiding this comment

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

It is inside the topic.save(function (err, saved) { callback, see #985 (diff)

Copy link
Member

Choose a reason for hiding this comment

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

Then I guess it's wrong on what I saw when rebasing my PR. I guess I should've looked closer. Please be sure to check my PR as well

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

Successfully merging this pull request may close these issues.

3 participants