mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-02-26 14:22:05 +00:00
add script arguments support for ad-hoc run scripts
This commit is contained in:
@@ -16,6 +16,20 @@
|
||||
label="Select script"
|
||||
map-options
|
||||
emit-value
|
||||
options-dense
|
||||
/>
|
||||
</q-card-section>
|
||||
<q-card-section>
|
||||
<q-select
|
||||
label="Script Arguments (press Enter after typing each argument)"
|
||||
filled
|
||||
v-model="args"
|
||||
use-input
|
||||
use-chips
|
||||
multiple
|
||||
hide-dropdown-icon
|
||||
input-debounce="0"
|
||||
new-value-mode="add"
|
||||
/>
|
||||
</q-card-section>
|
||||
<q-card-section>
|
||||
@@ -71,6 +85,7 @@ export default {
|
||||
timeout: 30,
|
||||
ret: null,
|
||||
output: "wait",
|
||||
args: [],
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -98,6 +113,7 @@ export default {
|
||||
timeout: this.timeout,
|
||||
scriptPK: this.scriptPK,
|
||||
output: this.output,
|
||||
args: this.args,
|
||||
};
|
||||
this.$axios
|
||||
.post("/agents/runscript/", data)
|
||||
|
||||
Reference in New Issue
Block a user