Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

color_picker_popover: Fix showing initial color as checked.

Anders Kaseorg67eca7d3160e
diff --git a/web/templates/popovers/color_picker_popover.hbs b/web/templates/popovers/color_picker_popover.hbs
index 6ecb8421d22..29183ba113e 100644
--- a/web/templates/popovers/color_picker_popover.hbs
+++ b/web/templates/popovers/color_picker_popover.hbs
@@ -23,7 +23,7 @@
<div role="group" class="color-swatch-list" aria-label="{{t 'Stream color' }}">
{{#each stream_color_palette as |row|}}
{{#each row as |hex_color|}}
- <input type="radio" id="color-{{hex_color}}" class="color-swatch-input" name="color-picker-select" data-swatch-color="{{hex_color}}" {{#if (eq hex_color ../stream_color )}}checked{{/if}} />
+ <input type="radio" id="color-{{hex_color}}" class="color-swatch-input" name="color-picker-select" data-swatch-color="{{hex_color}}" {{#if (eq hex_color ../../stream_color)}}checked{{/if}} />
<label role="menuitemradio" class="color-swatch-label tippy-zulip-delayed-tooltip" for="color-{{hex_color}}" style="background-color: {{hex_color}};" aria-label="{{hex_color}}" data-tippy-content="{{hex_color}}" data-swatch-color="{{hex_color}}" data-row="{{@../index}}" data-column="{{@index}}" tabindex="0"></label>
{{/each}}
{{/each}}