Allow linking to filters within the site
This commit is contained in:
parent
e3cf14016f
commit
d041d6a821
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue