From f2781825804039b5ca68466bec7054b8d9ccce5d Mon Sep 17 00:00:00 2001
From: vnugent <public@vaughnnugent.com>
Date: Fri, 8 Sep 2023 17:27:10 -0400
Subject: upstream theme updates and patches

---
 front-end/src/views/Blog/components/Posts/PostTable.vue | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'front-end/src/views/Blog/components/Posts/PostTable.vue')

diff --git a/front-end/src/views/Blog/components/Posts/PostTable.vue b/front-end/src/views/Blog/components/Posts/PostTable.vue
index 734d340..96c511c 100644
--- a/front-end/src/views/Blog/components/Posts/PostTable.vue
+++ b/front-end/src/views/Blog/components/Posts/PostTable.vue
@@ -39,10 +39,11 @@
 </template>
 
 <script setup lang="ts">
-import { toRefs } from 'vue';
+import { toRefs, watch } from 'vue';
 import { filter as _filter, truncate } from 'lodash-es';
 import { useClipboard } from '@vueuse/core';
 import { PostMeta } from '@vnuge/cmnext-admin';
+import { useGeneralToaster } from '@vnuge/vnlib.browser';
 
 const emit = defineEmits(['reload', 'open-edit'])
 
@@ -52,11 +53,14 @@ const props = defineProps<{
 
 const { posts } = toRefs(props)
 
-const { copy } = useClipboard()
+const { copy, copied } = useClipboard()
+const { info } = useGeneralToaster()
 
 const openEdit = async (post: PostMeta) => emit('open-edit', post)
 
 const getDateString = (time?: number) => new Date((time || 0) * 1000).toLocaleString();
 const getSummaryString = (summary?: string) => truncate(summary || '', { length: 40 })
 const getPostId = (post: PostMeta) => truncate(post.id || '', { length: 20 })
+
+watch(copied, (c) => c ? info({'title':'Copied to clipboard'}) : null)
 </script>
\ No newline at end of file
-- 
cgit 

