FIX: Rename deprecated icons, allow custom icons in badges

- adds a migration renaming FA4 icon names in badges
- allows all icons to be used in badges (previously was limited to icons prefixed with fa-)
- renames remaining FA 4.7 icons equivalents
This commit is contained in:
Penar Musaraj
2019-07-16 11:13:44 -04:00
committed by GitHub
parent ed5b31f427
commit a571efba35
16 changed files with 33 additions and 22 deletions

View File

@ -246,7 +246,7 @@ export default {
browser: "Google Chrome",
device: "Linux Computer",
os: "Linux",
icon: "linux",
icon: "fab-linux",
created_at: "2018-09-08T21:22:56.225Z",
seen_at: "2018-09-08T21:22:56.512Z",
is_active: false
@ -258,7 +258,7 @@ export default {
browser: "Google Chrome",
device: "Linux Computer",
os: "Linux",
icon: "linux",
icon: "fab-linux",
created_at: "2018-09-08T21:33:41.616Z",
seen_at: "2018-09-08T21:33:42.209Z",
is_active: true
@ -270,7 +270,7 @@ export default {
browser: "Internet Explorer",
device: "Windows Computer",
os: "Windows",
icon: "windows",
icon: "fab-windows",
created_at: "2018-09-07T21:44:41.616Z",
seen_at: "2018-09-08T21:44:42.209Z",
is_active: false

View File

@ -21,7 +21,7 @@ widgetTest("extendability", {
beforeEach(store) {
TopicStatusIcons.addObject([
"has_accepted_answer",
"check-square-o",
"far-check-square",
"solved"
]);
this.set("args", {
@ -32,6 +32,6 @@ widgetTest("extendability", {
});
},
test(assert) {
assert.ok(find(".topic-status .d-icon-check-square-o").length);
assert.ok(find(".topic-status .d-icon-far-check-square").length);
}
});