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:
Robin Ward 2020-12-23 14:12:13 -05:00 committed by GitHub
parent f040b5da58
commit abe8aeb597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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" : "",
};
});

View File

@ -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}}