Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix `no-unnecessary-curly-strings` lint rule (#24580)

Jarek Radosz103fab37e360
diff --git a/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.hbs b/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.hbs
index 05493ad3379..8b547fd0bfd 100644
--- a/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.hbs
+++ b/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.hbs
@@ -7,19 +7,16 @@
</div>
<span class="presence-text">
<span class="description">
- {{#if this.isReply~}}
+ {{~#if this.isReply~}}
{{i18n "presence.replying" count=this.presenceUsers.length}}
{{~else~}}
{{i18n "presence.editing" count=this.presenceUsers.length}}
- {{~/if}}
- {{~""~}}
+ {{~/if~}}
</span>
- {{~""~}}
<span class="wave">
- {{~""~}}
- <span class="dot">.</span>{{~""~}}
- <span class="dot">.</span>{{~""~}}
- <span class="dot">.</span>{{~""~}}
+ <span class="dot">.</span>
+ <span class="dot">.</span>
+ <span class="dot">.</span>
</span>
</span>
</div>
diff --git a/plugins/discourse-presence/assets/javascripts/discourse/components/topic-presence-display.hbs b/plugins/discourse-presence/assets/javascripts/discourse/components/topic-presence-display.hbs
index cd4384eec8f..04fdfffd0f0 100644
--- a/plugins/discourse-presence/assets/javascripts/discourse/components/topic-presence-display.hbs
+++ b/plugins/discourse-presence/assets/javascripts/discourse/components/topic-presence-display.hbs
@@ -12,10 +12,9 @@
{{i18n "presence.replying_to_topic" count=this.users.length}}
</span>
<span class="wave">
- {{~""~}}
- <span class="dot">.</span>{{~""~}}
- <span class="dot">.</span>{{~""~}}
- <span class="dot">.</span>{{~""~}}
+ <span class="dot">.</span>
+ <span class="dot">.</span>
+ <span class="dot">.</span>
</span>
</span>
</div>
diff --git a/plugins/discourse-presence/assets/stylesheets/presence.scss b/plugins/discourse-presence/assets/stylesheets/presence.scss
index 4235f17ac49..ad4f8e31464 100644
--- a/plugins/discourse-presence/assets/stylesheets/presence.scss
+++ b/plugins/discourse-presence/assets/stylesheets/presence.scss
@@ -22,6 +22,7 @@
}
.wave {
+ display: inline-flex;
flex: 0 0 auto;
.dot {