discourse-data-explorer/assets/javascripts/discourse/components/explorer-schema/enum-info.js

11 lines
226 B
JavaScript

import Component from "@glimmer/component";
export default class EnumInfo extends Component {
get enuminfo() {
return Object.entries(this.args.col.enum).map(([value, name]) => ({
value,
name,
}));
}
}