Web: Copy worker UUID on click
This commit is contained in:
parent
2a345a3d2c
commit
6122f14cbc
@ -4,7 +4,7 @@
|
|||||||
<template v-if="hasWorkerData">
|
<template v-if="hasWorkerData">
|
||||||
<dl>
|
<dl>
|
||||||
<dt class="field-id">ID</dt>
|
<dt class="field-id">ID</dt>
|
||||||
<dd>{{ workerData.id }}</dd>
|
<dd><span @click="copyElementText" class="click-to-copy">{{ workerData.id }}</span></dd>
|
||||||
|
|
||||||
<dt class="field-name">Name</dt>
|
<dt class="field-name">Name</dt>
|
||||||
<dd>{{ workerData.name }}</dd>
|
<dd>{{ workerData.name }}</dd>
|
||||||
@ -111,6 +111,7 @@ import { apiClient } from '@/stores/api-query-count';
|
|||||||
import { workerStatus } from "../../statusindicator";
|
import { workerStatus } from "../../statusindicator";
|
||||||
import LinkWorkerTask from '@/components/LinkWorkerTask.vue';
|
import LinkWorkerTask from '@/components/LinkWorkerTask.vue';
|
||||||
import SwitchCheckbox from '@/components/SwitchCheckbox.vue';
|
import SwitchCheckbox from '@/components/SwitchCheckbox.vue';
|
||||||
|
import { copyElementText } from '@/clipboard';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: [
|
props: [
|
||||||
@ -128,6 +129,7 @@ export default {
|
|||||||
workerSleepSchedule: this.defaultWorkerSleepSchedule(),
|
workerSleepSchedule: this.defaultWorkerSleepSchedule(),
|
||||||
isScheduleEditing: false,
|
isScheduleEditing: false,
|
||||||
notifs: useNotifs(),
|
notifs: useNotifs(),
|
||||||
|
copyElementText: copyElementText,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user