Show and copy paired client UUIDs
Some checks failed
ci-bundle.yml / Show and copy paired client UUIDs (push) Failing after 0s
ci-copr.yml / Show and copy paired client UUIDs (push) Failing after 0s
ci-homebrew.yml / Show and copy paired client UUIDs (push) Failing after 0s

This commit is contained in:
Joey Yakimowich-Payne 2026-02-12 12:43:52 -07:00
commit 5dd6e9214e

View file

@ -135,10 +135,21 @@
</div> </div>
<ul class="list-group list-group-flush" v-if="clients && clients.length > 0"> <ul class="list-group list-group-flush" v-if="clients && clients.length > 0">
<li v-for="client in clients" :key="client.uuid" class="list-group-item d-flex align-items-center"> <li v-for="client in clients" :key="client.uuid" class="list-group-item d-flex align-items-center">
<div class="flex-grow-1">{{ client.name !== "" ? client.name : $t('troubleshooting.unpair_single_unknown') }}</div> <div class="flex-grow-1">
<button class="btn btn-danger ms-auto" @click="unpairSingle(client.uuid)"> <div>{{ client.name !== "" ? client.name : $t('troubleshooting.unpair_single_unknown') }}</div>
<trash-2 :size="18" class="icon"></trash-2> <div class="text-muted" style="font-size: 0.8em">
</button> <span class="font-monospace">{{ client.uuid }}</span>
</div>
</div>
<div class="d-flex align-items-center gap-2 ms-auto">
<button class="btn btn-outline-secondary btn-sm" @click="copyClientUuid(client.uuid)">
<copy :size="16" class="icon"></copy>
Copy UUID
</button>
<button class="btn btn-danger" @click="unpairSingle(client.uuid)">
<trash-2 :size="18" class="icon"></trash-2>
</button>
</div>
</li> </li>
</ul> </ul>
<ul v-else class="list-group list-group-flush"> <ul v-else class="list-group list-group-flush">
@ -677,6 +688,15 @@
clickedApplyBanner() { clickedApplyBanner() {
this.showApplyMessage = false; this.showApplyMessage = false;
}, },
copyClientUuid(uuid) {
if (!uuid) {
return;
}
navigator.clipboard.writeText(uuid).catch(() => {
window.prompt("Copy client UUID", uuid);
});
},
copyLogs() { copyLogs() {
// Copy the filtered view if a filter is active. // Copy the filtered view if a filter is active.
navigator.clipboard.writeText(this.actualLogs); navigator.clipboard.writeText(this.actualLogs);