discourse/app/assets/javascripts/admin/components/site-settings/simple-list.js

12 lines
243 B
JavaScript

import Component from "@ember/component";
import { action } from "@ember/object";
export default Component.extend({
inputDelimiter: "|",
@action
onChange(value) {
this.set("value", value.join(this.inputDelimiter || "\n"));
}
});