Allow linking to filters within the site

This commit is contained in:
David Taylor 2017-02-27 22:15:05 +00:00
parent e3cf14016f
commit d041d6a821
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ function initializeWithApi(api) {
api.includePostAttributes('can_accept_answer', 'can_unaccept_answer', 'accepted_answer');
api.addDiscoveryQueryParam('solved', {replace: true, refreshModel: true});
api.addPostMenuButton('solved', attrs => {
const canAccept = attrs.can_accept_answer;
const canUnaccept = attrs.can_unaccept_answer;