mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-01-19 19:40:50 +00:00
fix favorited community scripts showing up if community scripts are hidden. Fix delete script in Script Manager
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
@@ -244,7 +244,7 @@
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="deleteScriptModal(props.row)"
|
||||
@click="deleteScript(props.row)"
|
||||
:disable="props.row.script_type === 'builtin'"
|
||||
>
|
||||
<q-item-section side>
|
||||
|
||||
Reference in New Issue
Block a user