mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-05 13:22:11 +00:00
Merge pull request #44 from davidtaylorhq/filter_parameters
Allow linking to filters within the site
This commit is contained in:
commit
78d221da67
@ -113,6 +113,10 @@ function initializeWithApi(api) {
|
||||
|
||||
api.includePostAttributes('can_accept_answer', 'can_unaccept_answer', 'accepted_answer');
|
||||
|
||||
if (api.addDiscoveryQueryParam) {
|
||||
api.addDiscoveryQueryParam('solved', {replace: true, refreshModel: true});
|
||||
}
|
||||
|
||||
api.addPostMenuButton('solved', attrs => {
|
||||
const canAccept = attrs.can_accept_answer;
|
||||
const canUnaccept = attrs.can_unaccept_answer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user