mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +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
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
if params[:label] == "ROOT"
|
if params[:label] == "ROOT" || params[:pluginType] == "source"
|
||||||
name = params[:pluginType]
|
name = params[:pluginType]
|
||||||
arg = params[:arg]
|
arg = params[:arg]
|
||||||
else
|
else
|
||||||
|
@ -133,6 +133,9 @@ $(document).ready(() => {
|
|||||||
_.each(data, (elements, label) => {
|
_.each(data, (elements, label) => {
|
||||||
this.$set(this.sections, label, elements);
|
this.$set(this.sections, label, elements);
|
||||||
});
|
});
|
||||||
|
if (_.isEmpty(data["ROOT"])) {
|
||||||
|
this.$set(this.sections, "ROOT", []);
|
||||||
|
}
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user