Preview on change plugin name

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-10-03 11:51:02 +09:00
parent c0c0b74624
commit 303ebed383
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1
2 changed files with 3 additions and 1 deletions

View File

@ -62,8 +62,9 @@ $(document).ready(() => {
methods: {
onChangePluginName: function(name) {
console.log("#in-tail-parse onChangePluginName", name);
this.parseType = name;
this.updateHighlightedLines([]);
this.parse = {}; // clear parser plugin configuration
this.onChangeParseConfig();
},
onChangeParseConfig: function(data) {
console.log("#in-tail-parse onChangeParseConfig", store.getters["parserParams/toParams"]);

View File

@ -63,6 +63,7 @@ const ParserPluginForm = {
methods: {
onChange: function(event) {
store.dispatch("parserParams/updateType", event);
this.$emit("change-plugin-name", event.target.value);
this.updateSection();
},