diff --git a/src/components/AgentTable.vue b/src/components/AgentTable.vue
index 220934c..1c900e8 100644
--- a/src/components/AgentTable.vue
+++ b/src/components/AgentTable.vue
@@ -1,29 +1,35 @@
${hostname} to confirm`,
- prompt: {model: '', type: 'text'},
+ this.$q
+ .dialog({
+ title: "Are you sure?",
+ message: `Delete agent ${hostname}`,
cancel: true,
- persistent: true,
- html: true
- }).onOk((hostnameConfirm) => {
- if (hostnameConfirm !== hostname) {
- this.$q.notify({
- message: "ERROR: Please type the correct hostname",
- color: "red"
- })
- } else {
- const data = {pk: pk};
- axios.delete("/agents/uninstallagent/", {data: data}).then(r => {
- this.$q.notify({
- message: `${hostname} will now be uninstalled!`,
- color: "green"
- })
- })
- .catch(e => {
- this.$q.notify({
- message: e.response.data.error,
- color: "info",
- timeout: 4000
- })
- })
- }
+ persistent: true
})
- })
+ .onOk(() => {
+ this.$q
+ .dialog({
+ title: `Please type ${hostname} to confirm`,
+ prompt: { model: "", type: "text" },
+ cancel: true,
+ persistent: true,
+ html: true
+ })
+ .onOk(hostnameConfirm => {
+ if (hostnameConfirm !== hostname) {
+ this.$q.notify({
+ message: "ERROR: Please type the correct hostname",
+ color: "red"
+ });
+ } else {
+ const data = { pk: pk };
+ axios
+ .delete("/agents/uninstallagent/", { data: data })
+ .then(r => {
+ this.$q.notify({
+ message: `${hostname} will now be uninstalled!`,
+ color: "green"
+ });
+ })
+ .catch(e => {
+ this.$q.notify({
+ message: e.response.data.error,
+ color: "info",
+ timeout: 4000
+ });
+ });
+ }
+ });
+ });
},
rebootNow(pk, hostname) {
this.$q
@@ -370,7 +408,7 @@ export default {
},
rebootLater() {
// TODO implement this
- console.log('reboot later')
+ console.log("reboot later");
},
toggleSendCommand(pk, hostname) {
this.sendCommandToggle = true;
@@ -436,12 +474,12 @@ export default {
});
},
agentClass(status) {
- if (status === 'offline') {
- return 'agent-offline'
- } else if (status === 'overdue') {
- return 'agent-overdue'
+ if (status === "offline") {
+ return "agent-offline";
+ } else if (status === "overdue") {
+ return "agent-overdue";
} else {
- return 'agent-normal'
+ return "agent-normal";
}
}
},
@@ -477,11 +515,13 @@ export default {
.highlight {
background-color: #c9e6ff;
}
+
.agent-offline {
- background: gray !important
+ background: gray !important;
}
+
.agent-overdue {
- background: red !important
+ background: red !important;
}
diff --git a/src/components/ChecksTab.vue b/src/components/ChecksTab.vue
index 3c8cc5d..80367c6 100644
--- a/src/components/ChecksTab.vue
+++ b/src/components/ChecksTab.vue
@@ -6,21 +6,39 @@
${output}`,
html: true,
dark: true
});
},
+ scriptMoreInfo(props) {
+ this.scriptInfo = props;
+ this.showScriptOutput = true;
+ },
editCheck(category) {
switch (category) {
case "diskspace":
diff --git a/src/components/modals/checks/AddDiskSpaceCheck.vue b/src/components/modals/checks/AddDiskSpaceCheck.vue
index e400341..0a9ecda 100644
--- a/src/components/modals/checks/AddDiskSpaceCheck.vue
+++ b/src/components/modals/checks/AddDiskSpaceCheck.vue
@@ -1,38 +1,47 @@
- {{ scriptInfo.last_run }}
+ {{ scriptInfo.execution_time}} seconds
+ {{ scriptInfo.retcode }}
+ {{ scriptInfo.stdout }}
+ {{ scriptInfo.stderr }}
+