mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 00:45:35 +08:00

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
21 lines
438 B
JavaScript
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);
|
|
},
|
|
});
|