From dad3fa81fa6d3f010a8ee22f6435f7054d162fc3 Mon Sep 17 00:00:00 2001 From: sadnub Date: Mon, 2 Aug 2021 17:48:13 -0400 Subject: [PATCH] fix favorited community scripts showing up if community scripts are hidden. Fix delete script in Script Manager --- src/components/AgentTable.vue | 4 ++-- src/components/scripts/ScriptManager.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/AgentTable.vue b/src/components/AgentTable.vue index d6ef94e..d41855e 100644 --- a/src/components/AgentTable.vue +++ b/src/components/AgentTable.vue @@ -534,7 +534,7 @@ export default { getFavoriteScripts() { this.favoriteScripts = []; this.$axios - .get("/scripts/") + .get("/scripts/", { params: { showCommunityScripts: this.showCommunityScripts } }) .then(r => { if (r.data.filter(k => k.favorite === true).length === 0) { this.notifyWarning("You don't have any scripts favorited!"); @@ -794,7 +794,7 @@ export default { }, }, computed: { - ...mapGetters(["selectedAgentPk", "agentTableHeight"]), + ...mapGetters(["selectedAgentPk", "agentTableHeight", "showCommunityScripts"]), agentDblClickAction() { return this.$store.state.agentDblClickAction; }, diff --git a/src/components/scripts/ScriptManager.vue b/src/components/scripts/ScriptManager.vue index 0b768b9..92ffbf1 100644 --- a/src/components/scripts/ScriptManager.vue +++ b/src/components/scripts/ScriptManager.vue @@ -244,7 +244,7 @@