mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
feat: remove params from card
This commit is contained in:
@@ -26,10 +26,6 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
default: 'none',
|
default: 'none',
|
||||||
},
|
},
|
||||||
paramSchema: {
|
|
||||||
type: Array,
|
|
||||||
default: () => [],
|
|
||||||
},
|
|
||||||
updatedAt: {
|
updatedAt: {
|
||||||
type: Number,
|
type: Number,
|
||||||
required: true,
|
required: true,
|
||||||
@@ -75,11 +71,6 @@ const authTypeLabel = computed(() => {
|
|||||||
`CAPTAIN.CUSTOM_TOOLS.FORM.AUTH_TYPES.${props.authType.toUpperCase()}`
|
`CAPTAIN.CUSTOM_TOOLS.FORM.AUTH_TYPES.${props.authType.toUpperCase()}`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const parameterNames = computed(() => {
|
|
||||||
if (!props.paramSchema || props.paramSchema.length === 0) return '';
|
|
||||||
return props.paramSchema.map(p => p.name).join(', ');
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -125,14 +116,6 @@ const parameterNames = computed(() => {
|
|||||||
<i class="i-lucide-lock text-base" />
|
<i class="i-lucide-lock text-base" />
|
||||||
{{ authTypeLabel }}
|
{{ authTypeLabel }}
|
||||||
</span>
|
</span>
|
||||||
<span
|
|
||||||
v-if="paramSchema.length > 0"
|
|
||||||
class="text-sm shrink-0 text-n-slate-11 inline-flex items-center gap-1"
|
|
||||||
:title="parameterNames"
|
|
||||||
>
|
|
||||||
<i class="i-lucide-braces text-base" />
|
|
||||||
{{ parameterNames }}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<span class="text-sm text-n-slate-11 line-clamp-1 shrink-0">
|
<span class="text-sm text-n-slate-11 line-clamp-1 shrink-0">
|
||||||
{{ timestamp }}
|
{{ timestamp }}
|
||||||
|
|||||||
Reference in New Issue
Block a user