FIX: Show the solved filter on tags (#296)
This commit is contained in:
parent
f81f1a1629
commit
6f27ff2998
|
@ -25,7 +25,10 @@ export default class SolvedStatusFilter extends Component {
|
||||||
args.editingCategory
|
args.editingCategory
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
} else if (helper.siteSettings.allow_solved_on_all_topics) {
|
} else if (
|
||||||
|
helper.siteSettings.allow_solved_on_all_topics ||
|
||||||
|
router.currentRouteName === "tag.show"
|
||||||
|
) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return args.currentCategory?.enable_accepted_answers;
|
return args.currentCategory?.enable_accepted_answers;
|
||||||
|
@ -45,8 +48,7 @@ export default class SolvedStatusFilter extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
get status() {
|
get status() {
|
||||||
const queryParamValue =
|
const queryParamValue = this.router.currentRoute.queryParams?.solved;
|
||||||
this.router.currentRoute.attributes?.modelParams?.solved;
|
|
||||||
return UX_VALUES[queryParamValue] || "all";
|
return UX_VALUES[queryParamValue] || "all";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ $solved-color: green;
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
.select-kit-header {
|
.select-kit-header {
|
||||||
margin: 0;
|
color: var(--primary-high);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue