19 lines
414 B
JavaScript
19 lines
414 B
JavaScript
import Component from "@ember/component";
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
|
|
export default Component.extend({
|
|
tagName: "ol",
|
|
|
|
@discourseComputed("col.enum")
|
|
enuminfo(hash) {
|
|
let result = [];
|
|
for (let key in hash) {
|
|
if (!hash.hasOwnProperty(key)) {
|
|
continue;
|
|
}
|
|
result.push({ value: key, name: hash[key] });
|
|
}
|
|
return result;
|
|
},
|
|
});
|