Skip to content

Commit 23f4abe

Browse files
DEV: Update linting (#133)
1 parent dec6be5 commit 23f4abe

File tree

16 files changed

+278
-285
lines changed

16 files changed

+278
-285
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{{#if (and showButton canFollow)}}
1+
{{#if (and this.showButton this.canFollow)}}
22
<DButton
3-
@label={{labelKey}}
4-
@icon={{icon}}
5-
@disabled={{loading}}
3+
@label={{this.labelKey}}
4+
@icon={{this.icon}}
5+
@disabled={{this.loading}}
66
@action={{action "toggleFollow"}}
77
/>
88
{{/if}}

assets/javascripts/discourse/components/follow-notification-preferences.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@
44
<div class="controls">
55
{{preference-checkbox
66
labelKey="user.follow_notifications_options.allow_people_to_follow_me"
7-
checked=user.allow_people_to_follow_me
7+
checked=this.user.allow_people_to_follow_me
88
}}
99

1010
{{preference-checkbox
1111
labelKey="user.follow_notifications_options.notify_me_when_followed"
12-
checked=user.notify_me_when_followed
12+
checked=this.user.notify_me_when_followed
1313
}}
1414

1515
{{preference-checkbox
1616
labelKey="user.follow_notifications_options.notify_followed_user_when_followed"
17-
checked=user.notify_followed_user_when_followed
17+
checked=this.user.notify_followed_user_when_followed
1818
}}
1919

2020
{{preference-checkbox
2121
labelKey="user.follow_notifications_options.notify_me_when_followed_replies"
22-
checked=user.notify_me_when_followed_replies
22+
checked=this.user.notify_me_when_followed_replies
2323
}}
2424

2525
{{preference-checkbox
2626
labelKey="user.follow_notifications_options.notify_me_when_followed_creates_topic"
27-
checked=user.notify_me_when_followed_creates_topic
27+
checked=this.user.notify_me_when_followed_creates_topic
2828
}}
2929
</div>
3030
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{{#each stream.content as |post|}}
1+
{{#each this.stream.content as |post|}}
22
{{follow-feed-post post=post}}
33
{{/each}}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div class="follow-users">
2-
{{#if hasUsers}}
3-
{{#each users as |user|}}
2+
{{#if this.hasUsers}}
3+
{{#each this.users as |user|}}
44
{{user-info user=user}}
55
{{/each}}
66
{{else}}
77
<div class="alert alert-info">{{i18n
8-
noneMessage
9-
username=user.username
8+
this.noneMessage
9+
username=this.user.username
1010
}}</div>
1111
{{/if}}
1212
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{follow-button user=user}}
1+
{{follow-button user=this.user}}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
{{#if user.total_following}}
1+
{{#if this.user.total_following}}
22
<div class="metadata__following">
33
<span>{{i18n "user.following.label"}}</span>
4-
<span class="value">{{user.total_following}}</span>
4+
<span class="value">{{this.user.total_following}}</span>
55
</div>
66
{{/if}}
7-
{{#if user.total_followers}}
7+
{{#if this.user.total_followers}}
88
<div class="metadata__followers">
99
<span>{{i18n "user.followers.label"}}</span>
10-
<span class="value">{{user.total_followers}}</span>
10+
<span class="value">{{this.user.total_followers}}</span>
1111
</div>
1212
{{/if}}

assets/javascripts/discourse/connectors/user-main-nav/follow-user-container.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#if model.can_see_network_tab}}
1+
{{#if this.model.can_see_network_tab}}
22
<LinkTo @route="follow">
33
{{d-icon "users"}}
44
<span>{{i18n "user.follow_nav"}}</span>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{follow-notification-preferences user=model}}
1+
{{follow-notification-preferences user=this.model}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{follow-button user=model}}
1+
{{follow-button user=this.model}}
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
{{#if model.total_following}}
2-
{{follow-statistic label="user.following.label" total=model.total_following}}
1+
{{#if this.model.total_following}}
2+
{{follow-statistic
3+
label="user.following.label"
4+
total=this.model.total_following
5+
}}
36
{{/if}}
47

5-
{{#if model.total_followers}}
6-
{{follow-statistic label="user.followers.label" total=model.total_followers}}
8+
{{#if this.model.total_followers}}
9+
{{follow-statistic
10+
label="user.followers.label"
11+
total=this.model.total_followers
12+
}}
713
{{/if}}

0 commit comments

Comments
 (0)