Jarek Radosz 33507cdb14
DEV: Styleguide fixes (#11836)
Includes:

* FIX: Don't override computed properties
* FIX: Prevent a set-after-destroy error
* FIX: Get rid of select-kit deprecations
* FIX: Replace removed admin-group-selector
* FIX: Provide onChange action to fix warnings
* FIX: Remove an element with an invalid id
* DEV: Remove topic-notifications-button from dropdowns
  It has its own styleguide section under "Molecules".
* UX: Styleguide tweaks
* DEV: Make the dropdowns useable
2021-01-26 15:40:58 +01:00

21 lines
438 B
JavaScript

import { afterRender } from "discourse-common/utils/decorators";
export default Ember.Component.extend({
tagName: "section",
classNames: ["styleguide-icons"],
iconIds: [],
init() {
this._super(...arguments);
this.setIconIds();
},
@afterRender
setIconIds() {
let symbols = document.querySelectorAll("#svg-sprites symbol");
let ids = Array.from(symbols).mapBy("id");
this.set("iconIds", ids);
},
});