Skip to content

Commit 7259214

Browse files
chore: No implicit this in templates (#4324)
1 parent 82e19e1 commit 7259214

File tree

303 files changed

+2221
-2256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+2221
-2256
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
<table class="ui unstackable table">
33
{{yield (hash
4-
api=api
5-
head=(component "ember-thead" api=api)
6-
body=(component "ember-tbody" api=api)
7-
foot=(component "ember-tfoot" api=api)
4+
api=this.api
5+
head=(component "ember-thead" api=this.api)
6+
body=(component "ember-tbody" api=this.api)
7+
foot=(component "ember-tfoot" api=this.api)
88
)}}
99
</table>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<Account::ApplicationSection @data={{model}} />
1+
<Account::ApplicationSection @data={{this.model}} />

app/templates/account/billing.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="ui grid">
22
<div class="row">
3-
<div class="{{if device.isMobile 'sixteen' 'three'}} wide column">
3+
<div class="{{if this.device.isMobile 'sixteen' 'three'}} wide column">
44
<TabbedNavigation @isVertical={{true}}>
55
<LinkTo @route="account.billing.payment-info" class="item">
66
{{t 'Payment Information'}}
@@ -10,7 +10,7 @@
1010
</LinkTo>
1111
</TabbedNavigation>
1212
</div>
13-
<div class="{{if device.isMobile 'sixteen' 'thirteen'}} wide column">
13+
<div class="{{if this.device.isMobile 'sixteen' 'thirteen'}} wide column">
1414
{{outlet}}
1515
</div>
1616
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div class="ui basic {{if isLoading 'loading' ''}} segment">
1+
<div class="ui basic {{if this.isLoading 'loading' ''}} segment">
22
<Forms::UserPaymentInfoForm />
33
</div>

app/templates/account/danger-zone.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<Account::DangerZone @data={{model}} />
1+
<Account::DangerZone @data={{this.model}} />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<Account::EmailPreferencesSection @preferences={{model}} />
1+
<Account::EmailPreferencesSection @preferences={{this.model}} />

app/templates/account/password.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Account::PasswordSection
22
@changePassword={{action "changePassword"}}
3-
@passwordCurrent={{passwordCurrent}}
4-
@passwordNew={{passwordNew}}
5-
@passwordRepeat={{passwordRepeat}}
6-
@isLoading={{isLoading}} />
3+
@passwordCurrent={{this.passwordCurrent}}
4+
@passwordNew={{this.passwordNew}}
5+
@passwordRepeat={{this.passwordRepeat}}
6+
@isLoading={{this.isLoading}} />

app/templates/account/profile.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div class="sixteen wide column">
2-
<Forms::UserProfileForm @user={{model}} @isLoading={{isLoading}} />
2+
<Forms::UserProfileForm @user={{this.model}} @isLoading={{this.isLoading}} />
33
</div>

app/templates/admin/content/events.hbs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
</h4>
1010
</div>
1111
<div class="eight wide column right aligned">
12-
<button class="ui icon circular blue button {{if device.isMobile 'fluid'}}" {{action 'openModalFor' 'event-type'}}>
12+
<button class="ui icon circular blue button {{if this.device.isMobile 'fluid'}}" {{action 'openModalFor' 'event-type'}}>
1313
<i class="icon plus"></i>
1414
</button>
1515
</div>
1616
</div>
1717
<div class="ui divider"></div>
1818
<table class="ui celled table">
1919
<tbody>
20-
{{#each model.eventTypes as |eventType|}}
20+
{{#each this.model.eventTypes as |eventType|}}
2121
<tr>
2222
<td>
2323
<div class="ui grid">
@@ -57,15 +57,15 @@
5757
</h4>
5858
</div>
5959
<div class="eight wide column right aligned">
60-
<button class="ui icon circular blue button {{if device.isMobile 'fluid'}}" {{action 'openModalFor' 'event-topic'}}>
60+
<button class="ui icon circular blue button {{if this.device.isMobile 'fluid'}}" {{action 'openModalFor' 'event-topic'}}>
6161
<i class="icon plus"></i>
6262
</button>
6363
</div>
6464
</div>
6565
<div class="ui divider"></div>
6666
<table class="ui celled table">
6767
<tbody>
68-
{{#each model.eventTopics as |eventTopic|}}
68+
{{#each this.model.eventTopics as |eventTopic|}}
6969
<tr>
7070
<td>
7171
<div class="ui grid">
@@ -105,7 +105,7 @@
105105
</h4>
106106
</div>
107107
<div class="eight wide column right aligned">
108-
<button class="ui icon circular blue {{if disableEventSubtopic 'disabled'}} button {{if device.isMobile 'fluid'}}" {{action 'openModalFor' 'event-sub-topic'}}>
108+
<button class="ui icon circular blue {{if this.disableEventSubtopic 'disabled'}} button {{if this.device.isMobile 'fluid'}}" {{action 'openModalFor' 'event-sub-topic'}}>
109109
<i class="icon plus"></i>
110110
</button>
111111
</div>
@@ -119,16 +119,16 @@
119119
<i class="dropdown icon"></i>
120120
<div class="default text">{{t 'Select Event Topic'}}</div>
121121
<div class="menu">
122-
{{#each model.eventTopics as |topic|}}
122+
{{#each this.model.eventTopics as |topic|}}
123123
<div class="item" data-value="{{map-value mapper topic}}">{{topic.name}}</div>
124124
{{/each}}
125125
</div>
126126
</UiDropdown>
127127
</div>
128-
{{#if model.eventSubTopics}}
128+
{{#if this.model.eventSubTopics}}
129129
<table class="ui celled table">
130130
<tbody>
131-
{{#each model.eventSubTopics as |subTopic|}}
131+
{{#each this.model.eventSubTopics as |subTopic|}}
132132
<tr>
133133
<td>
134134
<div class="ui grid">
@@ -164,18 +164,18 @@
164164
</div>
165165

166166
<Modals::Admin::Content::NewEventTypeModal
167-
@isOpen={{eventType.openModal}}
168-
@name={{eventType.name}}
169-
@addEventProperty={{action "addEventProperty" eventType}} />
167+
@isOpen={{this.eventType.openModal}}
168+
@name={{this.eventType.name}}
169+
@addEventProperty={{action "addEventProperty" this.eventType}} />
170170

171171
<Modals::Admin::Content::NewEventTopicModal
172-
@isOpen={{eventTopic.openModal}}
173-
@name={{eventTopic.name}}
174-
@addEventProperty={{action "addEventProperty" eventTopic}} />
172+
@isOpen={{this.eventTopic.openModal}}
173+
@name={{this.eventTopic.name}}
174+
@addEventProperty={{action "addEventProperty" this.eventTopic}} />
175175

176176
<Modals::Admin::Content::NewEventSubTopicModal
177-
@isOpen={{eventSubTopic.openModal}}
178-
@model={{model}}
179-
@eventSubTopic={{eventSubTopic}}
180-
@eventTopic={{currentTopicSelected}}
181-
@addEventProperty={{action "addEventProperty" eventSubTopic}} />
177+
@isOpen={{this.eventSubTopic.openModal}}
178+
@model={{this.model}}
179+
@eventSubTopic={{this.eventSubTopic}}
180+
@eventTopic={{this.currentTopicSelected}}
181+
@addEventProperty={{action "addEventProperty" this.eventSubTopic}} />

app/templates/admin/content/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<Forms::Admin::Content::SocialLinksForm @socials={{model}} @save="saveSocials" @isLoading={{isLoading}} />
1+
<Forms::Admin::Content::SocialLinksForm @socials={{this.model}} @save="saveSocials" @isLoading={{this.isLoading}} />

0 commit comments

Comments
 (0)