From 9c455badb90edeac1ca10815dcd3d025328708b5 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Thu, 3 Apr 2025 13:08:44 -0400 Subject: [PATCH 1/2] support background actions via config UI --- salt/soc/soc_soc.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index b0ecfdbc1..a12da330a 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -81,6 +81,26 @@ soc: label: Target - field: jscall label: JavaScript Call + - field: background + label: Background XHR Request + forcedType: bool + - field: method + label: XHR Method + options: + - DELETE + - GET + - PATCH + - POST + - PUT + - field: body + label: XHR Content + - field: encodeBody + label: Encode XHR Content Variable Data + forcedType: bool + - field: backgroundSuccessLink + label: XHR Success Link + - field: backgroundFailureLink + label: XHR Failure Link - field: category label: Category options: From b99bb0b004f8f82e0556f39d2bc9534db2403d36 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Fri, 4 Apr 2025 11:19:30 -0400 Subject: [PATCH 2/2] support options field on actions --- salt/soc/soc_soc.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index a12da330a..ac22aa2c1 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -92,6 +92,10 @@ soc: - PATCH - POST - PUT + - field: options + label: XHR Options (JSON) + multiline: True + forcedType: "{}" - field: body label: XHR Content - field: encodeBody