Skip to content

Commit

Permalink
Release 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Sep 1, 2021
2 parents 38179b9 + a20b1a9 commit 4942f26
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/tacticalrmm/scripts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def post(self, request):
agent = get_object_or_404(Agent, pk=request.data["agent"])

parsed_args = Script.parse_script_args(
self, request.data["shell"], request.data["args"]
agent, request.data["shell"], request.data["args"]
)

data = {
Expand Down
6 changes: 3 additions & 3 deletions api/tacticalrmm/tacticalrmm/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
AUTH_USER_MODEL = "accounts.User"

# latest release
TRMM_VERSION = "0.8.1"
TRMM_VERSION = "0.8.2"

# bump this version everytime vue code is changed
# to alert user they need to manually refresh their browser
APP_VER = "0.0.143"
APP_VER = "0.0.144"

# https://github.com/wh1te909/rmmagent
LATEST_AGENT_VER = "1.6.0"
LATEST_AGENT_VER = "1.6.1"

MESH_VER = "0.9.16"

Expand Down
6 changes: 4 additions & 2 deletions web/src/components/AgentTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ export default {
if (filter === "actionspending") actions = true;
else if (filter === "checksfailing") checks = true;
else if (filter === "rebootneeded") reboot = true;
else if (filter === "online" || filter === "offline" || filter === "expired") availability = filter;
else if (filter === "online" || filter === "offline" || filter === "expired" || filter === "overdue")
availability = filter;
} else {
search = param + "";
}
Expand All @@ -492,7 +493,8 @@ export default {
if (actions && row.pending_actions_count === 0) return false;
if (reboot && !row.needs_reboot) return false;
if (availability === "online" && row.status !== "online") return false;
else if (availability === "offline" && row.status !== "overdue") return false;
else if (availability === "offline" && row.status !== "offline") return false;
else if (availability === "overdue" && row.status !== "overdue") return false;
else if (availability === "expired") {
let now = new Date();
let lastSeen = date.extractDate(row.last_seen, "MM DD YYYY HH:mm");
Expand Down
17 changes: 16 additions & 1 deletion web/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,16 @@
</q-item-section>
</q-item>

<q-item>
<q-item-section side>
<q-radio val="overdue" v-model="filterAvailability" />
</q-item-section>

<q-item-section>
<q-item-label>Show Overdue Only</q-item-label>
</q-item-section>
</q-item>

<q-item>
<q-item-section side>
<q-radio val="offline_30days" v-model="filterAvailability" />
Expand Down Expand Up @@ -809,7 +819,10 @@ export default {
// clear search if availability changes to all
if (
this.filterAvailability === "all" &&
(this.search.includes("is:online") || this.search.includes("is:offline") || this.search.includes("is:expired"))
(this.search.includes("is:online") ||
this.search.includes("is:offline") ||
this.search.includes("is:expired") ||
this.search.includes("is:overdue"))
)
this.clearFilter();
Expand Down Expand Up @@ -841,6 +854,8 @@ export default {
filterText += "is:offline ";
} else if (this.filterAvailability === "offline_30days") {
filterText += "is:expired ";
} else if (this.filterAvailability === "overdue") {
filterText += "is:overdue ";
}
}
Expand Down

0 comments on commit 4942f26

Please sign in to comment.