add supported_platforms and hidden field to scripts and filter in script dialogs and allow editing in script forms
This commit is contained in:
@@ -50,6 +50,18 @@
|
||||
<tactical-dropdown v-model="script.shell" :options="shellOptions" label="Type" outlined mapOptions />
|
||||
</q-card-section>
|
||||
|
||||
<q-card-section>
|
||||
<tactical-dropdown
|
||||
v-model="script.supported_platforms"
|
||||
:options="agentPlatformOptions"
|
||||
label="Supported Platforms (All supported if blank)"
|
||||
clearable
|
||||
mapOptions
|
||||
filled
|
||||
multiple
|
||||
/>
|
||||
</q-card-section>
|
||||
|
||||
<q-card-section>
|
||||
<tactical-dropdown
|
||||
v-model="script.args"
|
||||
@@ -90,6 +102,7 @@
|
||||
import { ref, watch } from "vue";
|
||||
import { useDialogPluginComponent } from "quasar";
|
||||
import { saveScript } from "@/api/scripts";
|
||||
import { agentPlatformOptions } from "@/composables/agents";
|
||||
import { notifySuccess } from "@/utils/notify";
|
||||
|
||||
// ui imports
|
||||
@@ -149,6 +162,7 @@ export default {
|
||||
|
||||
// non-reactive data
|
||||
shellOptions,
|
||||
agentPlatformOptions,
|
||||
|
||||
// methods
|
||||
submitForm,
|
||||
|
||||
Reference in New Issue
Block a user