mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
Stop including label name to element_id
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
ef56a23d1d
commit
9d00d8ef12
@ -54,7 +54,7 @@ class Api::SettingsController < ApplicationController
|
||||
element_type = element_type(element.name)
|
||||
elements = @config.group_by_label.dig(label_name, element_type)
|
||||
index = elements.index(element)
|
||||
"#{label_name}:#{"%06d" % index}#{Digest::MD5.hexdigest(element.to_s)}"
|
||||
"#{"%06d" % index}#{Digest::MD5.hexdigest(element.to_s)}"
|
||||
end
|
||||
|
||||
def element_type(name)
|
||||
|
Loading…
Reference in New Issue
Block a user