Rename Services to Actions in plugins (#33843)

This commit is contained in:
Franck Nijhof 2024-07-17 10:29:52 +02:00 committed by GitHub
parent 2602651bdc
commit 369670927d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,8 +53,8 @@ module Jekyll
# Custom title # Custom title
title = options[:title] title = options[:title]
elsif @redirect == "developer_call_service" elsif @redirect == "developer_call_service"
# Developer service call # Developer actions
title = "Call Service" title = "Perform action"
title = "`#{options[:service]}`" if options.include? :service title = "`#{options[:service]}`" if options.include? :service
elsif DEFAULT_TITLES.include?(@redirect) elsif DEFAULT_TITLES.include?(@redirect)
# Lookup defaults # Lookup defaults
@ -96,7 +96,7 @@ module Jekyll
"config_zwave_js" => "Z-Wave JS Configuration", "config_zwave_js" => "Z-Wave JS Configuration",
"config" => "Settings", "config" => "Settings",
"developer_events" => "Events", "developer_events" => "Events",
"developer_services" => "Services", "developer_services" => "Actions",
"developer_states" => "States", "developer_states" => "States",
"developer_template" => "Templates", "developer_template" => "Templates",
"energy" => "Energy", "energy" => "Energy",
@ -104,7 +104,7 @@ module Jekyll
"info" => "Information", "info" => "Information",
"supervisor_info" => "Supervisor Information", "supervisor_info" => "Supervisor Information",
"supervisor_backups" => "Backups", "supervisor_backups" => "Backups",
"integrations" => "Devices & Services", "integrations" => "Devices & services",
} }
def parse_options(input, context) def parse_options(input, context)