mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 11:48:08 +08:00
FIX: Replace this.get("foo") with this.foo to fix linting checks
This commit is contained in:
@ -9,15 +9,15 @@ export default Mixin.create({
|
|||||||
"category",
|
"category",
|
||||||
"noSubcategories",
|
"noSubcategories",
|
||||||
function() {
|
function() {
|
||||||
const rawFilterMode = this.get("rawFilterMode");
|
const rawFilterMode = this.rawFilterMode;
|
||||||
if (rawFilterMode) {
|
if (rawFilterMode) {
|
||||||
return rawFilterMode;
|
return rawFilterMode;
|
||||||
} else {
|
} else {
|
||||||
const category = this.get("category");
|
const category = this.category;
|
||||||
const filterType = this.get("filterType");
|
const filterType = this.filterType;
|
||||||
|
|
||||||
if (category) {
|
if (category) {
|
||||||
const noSubcategories = this.get("noSubcategories");
|
const noSubcategories = this.noSubcategories;
|
||||||
|
|
||||||
return `c/${Category.slugFor(category)}${
|
return `c/${Category.slugFor(category)}${
|
||||||
noSubcategories ? "/none" : ""
|
noSubcategories ? "/none" : ""
|
||||||
@ -31,7 +31,7 @@ export default Mixin.create({
|
|||||||
|
|
||||||
filterMode: computed("filterModeInternal", {
|
filterMode: computed("filterModeInternal", {
|
||||||
get() {
|
get() {
|
||||||
return this.get("filterModeInternal");
|
return this.filterModeInternal;
|
||||||
},
|
},
|
||||||
|
|
||||||
set(key, value) {
|
set(key, value) {
|
||||||
|
Reference in New Issue
Block a user