DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592)

This commit is contained in:
Joffrey JAFFEUX
2019-05-27 10:15:39 +02:00
committed by GitHub
parent 170c66c190
commit bfea922167
389 changed files with 2448 additions and 2460 deletions

View File

@ -16,7 +16,7 @@ export default Ember.Component.extend({
@computed("themes", "components", "currentTab")
themesList(themes, components) {
if (this.get("themesTabActive")) {
if (this.themesTabActive) {
return themes;
} else {
return components;
@ -30,7 +30,7 @@ export default Ember.Component.extend({
"themesList.@each.default"
)
inactiveThemes(themes) {
if (this.get("componentsTabActive")) {
if (this.componentsTabActive) {
return themes.filter(theme => theme.get("parent_themes.length") <= 0);
}
return themes.filter(
@ -45,7 +45,7 @@ export default Ember.Component.extend({
"themesList.@each.default"
)
activeThemes(themes) {
if (this.get("componentsTabActive")) {
if (this.componentsTabActive) {
return themes.filter(theme => theme.get("parent_themes.length") > 0);
} else {
themes = themes.filter(
@ -63,7 +63,7 @@ export default Ember.Component.extend({
actions: {
changeView(newTab) {
if (newTab !== this.get("currentTab")) {
if (newTab !== this.currentTab) {
this.set("currentTab", newTab);
}
},