Skip to content

Commit

Permalink
Merge branch 'next' into next-hooks-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ar2rsawseen authored Jan 8, 2025
2 parents d6f6147 + e579a16 commit c575fd6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions plugins/alerts/frontend/public/javascripts/countly.views.js
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,12 @@
computed: {
tableRows: function() {
var rows = this.$store.getters["countlyAlerts/table/all"];
if (this.tableFilterStatus !== "all") {
var enabled = this.tableFilterStatus === "enabled" ? true : false;
rows = rows.filter(function(r) {
return r.enabled === enabled;
});
}
if (this.filteredApps.length > 0) {
var self = this;
rows = rows.filter(function(r) {
Expand Down Expand Up @@ -1106,6 +1112,7 @@
appsSelectorOption: appsSelectorOption,
filterStatus: "all",
filteredApps: [],
tableFilterStatus: "all",
tableDynamicCols: [
{
value: "appNameList",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,6 @@ alert.email-header = Email Notification
alerts.email-icon = This alert can only be used within Hooks to trigger actions.
alerts.common-icon-info = Alert will be triggered as soon as a new response is submitted for the selected widget.
alerts.crashes-icon = Alert will be triggered as soon as a new, before unseen crash occurs.

alerts.status-all = All alerts
alerts.status-enabled = Enabled
alerts.status-disabled = Disabled
7 changes: 7 additions & 0 deletions plugins/alerts/frontend/public/templates/vue-main.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
:default-sort="{prop: 'createdAt', order: 'descending'}"
>
<template v-slot:header-left="scope">
<div class="bu-mr-2">
<el-radio-group :plain="true" v-model="tableFilterStatus">
<el-radio-button label="all">{{i18n('alerts.status-all')}}</el-radio-button>
<el-radio-button label="enabled">{{i18n('alerts.status-enabled')}}</el-radio-button>
<el-radio-button label="disabled">{{i18n('alerts.status-disabled')}}</el-radio-button>
</el-radio-group>
</div>
<div class="alerts-table-app-selector">
<cly-select-x
:placeholder="i18n('alert.all-applications')"
Expand Down

0 comments on commit c575fd6

Please sign in to comment.