Skip to content

Commit

Permalink
Update SummaryTab.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
dinger1986 authored Mar 10, 2024
1 parent 94babff commit 46b7202
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions src/components/agents/SummaryTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,25 @@
</q-item>
<q-item>
<q-item-section avatar>
<q-icon name="fas fa-globe-americas" />
<q-icon name="fas fa-globe-americas" />
</q-item-section>
<q-item-section>Public IP: {{ summary.public_ip }}</q-item-section>
</q-item>
<q-item-section>
Public IP: {{ summary.public_ip }}
</q-item-section>
<q-item-section side top>
<q-btn
round
dense
flat
size="sm"
icon="info"
@click="openURL(`https://ipapi.co/${summary.public_ip}/`)"
>
<q-tooltip>Get Info on IP</q-tooltip>
</q-btn>
</q-item-section>
</q-item>

<q-item>
<q-item-section avatar>
<q-icon name="fas fa-network-wired" />
Expand Down Expand Up @@ -305,6 +320,11 @@ export default {
return ret;
});
// Define the openURL method within setup
const openURL = (url) => {
window.open(url, '_blank');
};
const customFields = computed(() => {
if (!summary.value.custom_fields) {
return [];
Expand Down Expand Up @@ -386,7 +406,8 @@ export default {
serial_number,
cpu,
store,
openURL,
// methods
getSummary,
refreshSummary,
Expand Down

0 comments on commit 46b7202

Please sign in to comment.