From 15cd9832c4deb015dd5a20600bb22566540ebe09 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 14 Dec 2020 20:41:07 +0000 Subject: [PATCH] change fav script context menu style --- web/src/components/AgentTable.vue | 45 ++++++++++++++----------------- 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/web/src/components/AgentTable.vue b/web/src/components/AgentTable.vue index 183c96ec..1f278e6b 100644 --- a/web/src/components/AgentTable.vue +++ b/web/src/components/AgentTable.vue @@ -115,38 +115,32 @@ Send Command - + Run Script + + + + + + + Run Favorited Script - - - - Select Script - - - Favorites - - - - - - - {{ script.label }} - - - + + + + {{ script.label }} @@ -496,6 +490,7 @@ export default { .catch(e => this.notifyError(e.response.data)); }, getFavoriteScripts() { + this.favoriteScripts = []; this.$axios.get("/scripts/scripts/").then(r => { if (r.data.filter(k => k.favorite === true).length === 0) { this.notifyWarning("You don't have any scripts favorited!");