Просмотр исходного кода

bugfix: Default config now uses "triggers" instead of "trigger", and shows HTML (#521)

James Read 1 год назад
Родитель
Сommit
5cd5bd2a25
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      config.yaml

+ 6 - 2
config.yaml

@@ -108,6 +108,10 @@ actions:
     icon: ashtonished
     shell: rm -rf /opt/oldBackups/
     arguments:
+      - type: html
+        title: Description
+        default:
+          The documentation for this action can be found at <a href = "example.com">example.com</a>.
       - type: confirmation
         title: Are you sure?!
 
@@ -197,13 +201,13 @@ actions:
     icon: box
     shell: docker start {{ container.Names }}
     entity: container
-    trigger: Update container entity file
+    triggers: ["Update container entity file"]
 
   - title: Stop {{ container.Names }}
     icon: box
     shell: docker stop {{ container.Names }}
     entity: container
-    trigger: Update container entity file
+    triggers: ["Update container entity file"]
 
   # Lastly, you can hide actions from the web UI, this is useful for creating
   # background helpers that execute only on startup or a cron, for updating