From fe946483c8f3c458ceed7cbbf4c8b1d21fda1327 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sun, 9 Aug 2020 22:40:12 +0000 Subject: [PATCH] description is now optional during cli install wh1te909/winagent@e67ae912b7765844a732e8ab0471d23d158345b0 --- .../modals/agents/AgentDownload.vue | 4 +-- .../components/modals/agents/InstallAgent.vue | 28 ++++++------------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/web/src/components/modals/agents/AgentDownload.vue b/web/src/components/modals/agents/AgentDownload.vue index de3b13cb..e8acc68e 100644 --- a/web/src/components/modals/agents/AgentDownload.vue +++ b/web/src/components/modals/agents/AgentDownload.vue @@ -17,7 +17,7 @@ {{ info.exe }} /VERYSILENT /SUPPRESSMSGBOXES && timeout /t 20 /nobreak > NUL && "C:\Program Files\TacticalAgent\tacticalrmm.exe" -m install --api "{{ info.api }}" - --client-id {{ info.data.client }} --site-id {{ info.data.site }} --desc "{{ info.desc }}" + --client-id {{ info.data.client }} --site-id {{ info.data.site }} --agent-type "{{ info.agenttype }}" --auth "{{ info.data.token }}"

@@ -31,6 +31,6 @@ \ No newline at end of file diff --git a/web/src/components/modals/agents/InstallAgent.vue b/web/src/components/modals/agents/InstallAgent.vue index 5f3a2ec3..09e3260e 100644 --- a/web/src/components/modals/agents/InstallAgent.vue +++ b/web/src/components/modals/agents/InstallAgent.vue @@ -25,12 +25,6 @@ -
Agent type:
@@ -49,7 +43,7 @@
- +
@@ -72,12 +66,11 @@ export default { versions: {}, client: null, site: null, - desc: null, version: null, agenttype: "server", github: [], showAgentDownload: false, - info: {} + info: {}, }; }, methods: { @@ -85,12 +78,12 @@ export default { this.$q.loading.show(); axios .get("/clients/loadclients/") - .then(r => { + .then((r) => { this.tree = r.data; this.client = Object.keys(r.data)[0]; axios .get("/agents/getagentversions/") - .then(r => { + .then((r) => { this.versions = r.data.versions; this.version = Object.values(r.data.versions)[0]; this.github = r.data.github; @@ -109,19 +102,16 @@ export default { }, addAgent() { const api = axios.defaults.baseURL; - const release = this.github.filter(i => i.name === this.version)[0]; + const release = this.github.filter((i) => i.name === this.version)[0]; const download = release.assets[0].browser_download_url; const exe = `${release.name}.exe`; const data = { client: this.client, site: this.site }; - axios.post("/agents/installagent/", data).then(r => { - this.info = { exe, download, api, desc: this.desc, agenttype: this.agenttype, data: r.data }; + axios.post("/agents/installagent/", data).then((r) => { + this.info = { exe, download, api, agenttype: this.agenttype, data: r.data }; this.showAgentDownload = true; }); }, - quit() { - this.$emit("close"); - } }, computed: { sites() { @@ -129,10 +119,10 @@ export default { this.site = this.tree[this.client][0]; return this.tree[this.client]; } - } + }, }, created() { this.getClientsSites(); - } + }, }; \ No newline at end of file