mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592)
This commit is contained in:
@ -22,7 +22,7 @@ export default SelectKitHeaderComponent.extend({
|
||||
|
||||
@on("didRender")
|
||||
_positionFilter() {
|
||||
if (!this.get("shouldDisplayFilter")) return;
|
||||
if (!this.shouldDisplayFilter) return;
|
||||
|
||||
const $filter = this.$(".filter");
|
||||
$filter.width(0);
|
||||
|
@ -42,12 +42,12 @@ export default Ember.Component.extend({
|
||||
|
||||
@computed("computedContent", "highlightedSelection.[]")
|
||||
isHighlighted(computedContent, highlightedSelection) {
|
||||
return highlightedSelection.includes(this.get("computedContent"));
|
||||
return highlightedSelection.includes(this.computedContent);
|
||||
},
|
||||
|
||||
click() {
|
||||
if (this.get("isLocked")) return false;
|
||||
this.onClickSelectionItem([this.get("computedContent")]);
|
||||
if (this.isLocked) return false;
|
||||
this.onClickSelectionItem([this.computedContent]);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user