mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:01:52 +08:00
FIX: The title
attribute of the diversity scales was incorrect (#11570)
It needed to be underscored, since it had dashes in it.
This commit is contained in:
parent
f040b5da58
commit
abe8aeb597
|
@ -12,6 +12,7 @@ import Component from "@ember/component";
|
|||
import { createPopper } from "@popperjs/core";
|
||||
import { htmlSafe } from "@ember/template";
|
||||
import { inject as service } from "@ember/service";
|
||||
import { underscore } from "@ember/string";
|
||||
|
||||
function customEmojis() {
|
||||
const list = extendedEmojiList();
|
||||
|
@ -149,6 +150,7 @@ export default Component.extend({
|
|||
].map((name, index) => {
|
||||
return {
|
||||
name,
|
||||
title: `emoji_picker.${underscore(name)}_tone`,
|
||||
icon: index + 1 === this.selectedDiversity ? "check" : "",
|
||||
};
|
||||
});
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
{{d-button
|
||||
icon=diversityScale.icon
|
||||
class=(concat "diversity-scale " diversityScale.name)
|
||||
title=(concat "emoji_picker." diversityScale.name "_tone")
|
||||
title=diversityScale.title
|
||||
action=(action "onDiversitySelection" index)
|
||||
}}
|
||||
{{/each}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user