Skip to content

Commit

Permalink
add refresh button to policy status closes amidaware/tacticalrmm#2010
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Oct 6, 2024
1 parent f6bbe3e commit 797b27a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/automation/modals/PolicyStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
<q-dialog ref="dialog" @hide="onHide">
<q-card class="q-dialog-plugin" style="min-width: 70vw">
<q-bar>
<q-btn
ref="refresh"
@click="refresh"
class="q-mr-sm"
dense
flat
push
icon="refresh"
/>
{{ title.slice(0, 27) }}
<q-space />
<q-btn dense flat icon="close" v-close-popup>
Expand Down Expand Up @@ -281,6 +290,13 @@ export default {
},
});
},
refresh() {
if (this.type === "task") {
this.getTaskData();
} else {
this.getCheckData();
}
},
show() {
this.$refs.dialog.show();
},
Expand Down

0 comments on commit 797b27a

Please sign in to comment.