mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
Delete input plugin element properly
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
6fd3a56f58
commit
1f1bb2960d
@ -25,7 +25,7 @@ class Api::SettingsController < ApplicationController
|
||||
end
|
||||
|
||||
def destroy
|
||||
if params[:label] == "ROOT"
|
||||
if params[:label] == "ROOT" || params[:pluginType] == "source"
|
||||
name = params[:pluginType]
|
||||
arg = params[:arg]
|
||||
else
|
||||
|
@ -133,6 +133,9 @@ $(document).ready(() => {
|
||||
_.each(data, (elements, label) => {
|
||||
this.$set(this.sections, label, elements);
|
||||
});
|
||||
if (_.isEmpty(data["ROOT"])) {
|
||||
this.$set(this.sections, "ROOT", []);
|
||||
}
|
||||
this.loaded = true;
|
||||
setTimeout(() => {
|
||||
this.loading = false;
|
||||
|
Loading…
Reference in New Issue
Block a user