Skip to content

Commit

Permalink
add supported platforms for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Feb 11, 2025
1 parent d8a531f commit 30635b1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/components/tasks/AutomatedTaskForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
hide-bottom-space
/>
</q-card-section>
<q-card-section>
Supported Platforms
<q-option-group
:rules="[(val) => val.length > 0 || '*Required']"
v-model="state.supported_platforms"
:options="plat_options"
type="checkbox"
inline
/>
</q-card-section>
<q-card-section>
<q-checkbox
dense
Expand Down Expand Up @@ -869,6 +879,12 @@ const taskInstancePolicyOptions = [
{ label: "Stop Existing", value: 3 },
];
const plat_options = [
{ label: "Windows", value: "windows" },
{ label: "Linux", value: "linux" },
{ label: "macOS", value: "darwin" },
];
export default defineComponent({
components: { TacticalDropdown, draggable },
name: "AddAutomatedTask",
Expand Down Expand Up @@ -932,6 +948,7 @@ export default defineComponent({
alert_severity: "info",
collector_all_output: false,
continue_on_error: true,
supported_platforms: ["windows"],
});
const actionType = ref("script");
Expand Down Expand Up @@ -1203,6 +1220,7 @@ export default defineComponent({
taskTypeOptions,
taskInstancePolicyOptions,
envVarsLabel,
plat_options,
// methods
submit,
Expand Down

0 comments on commit 30635b1

Please sign in to comment.