add supported_platforms and hidden field to scripts and filter in script dialogs and allow editing in script forms

This commit is contained in:
sadnub
2022-03-10 20:01:24 -05:00
parent 57be74bb42
commit ebd9512d4d
8 changed files with 125 additions and 38 deletions

View File

@@ -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,