@@ -15,7 +15,8 @@ const { isMobile } = useResponsive()
1515
1616interface PluginInfo {
1717 type: string
18- configSchema? : Record <string , { label: string ; type: string ; required? : boolean ; description? : string ; default? : string | boolean | number ; options? : Array <{ label: string ; value: string }> }>
18+ label: string
19+ configSchema: Record <string , { label: string ; type: string ; required? : boolean ; description? : string ; default? : string | boolean | number ; options? : Array <{ label: string ; value: string }> }>
1920}
2021
2122interface ChannelSessionRow {
@@ -412,7 +413,7 @@ async function refresh() {
412413 </td >
413414 <td >{{ c.name }}</td >
414415 <td style =" font-family :monospace ;font-size :11px ;color :#9b9b9b " >{{ id }}</td >
415- <td >{{ c.type }}</td >
416+ <td >{{ plugins.find(p => p.type === c.type)?.label || c.type }}</td >
416417 <td >{{ agentOptions.find(a => a.id === c.agent)?.label || c.agent || '-' }}</td >
417418 <td >{{ c.saver ? (saverOptions.find(s => s.id === c.saver)?.label || c.saver) : '-' }}</td >
418419 <td >{{ Array.isArray(c.memories) && c.memories.length ? c.memories.map(id => memoryOptions.find(m => m.id === id)?.label || id).join(', ') : '-' }}</td >
@@ -534,7 +535,7 @@ async function refresh() {
534535 </div >
535536 <div class =" mobile-card-fields" >
536537 <span class =" mobile-card-label" >{{ t('common.type') }}</span >
537- <span class =" mobile-card-value" >{{ c.type }}</span >
538+ <span class =" mobile-card-value" >{{ plugins.find(p => p.type === c.type)?.label || c.type }}</span >
538539 <span class =" mobile-card-label" >{{ t('common.agent') }}</span >
539540 <span class =" mobile-card-value" >{{ agentOptions.find(a => a.id === c.agent)?.label || c.agent || '-' }}</span >
540541 <span class =" mobile-card-label" >{{ t('common.storage') }}</span >
@@ -613,7 +614,7 @@ async function refresh() {
613614 <div class =" form-group" >
614615 <label >{{ t('channels.channel_type') }} *</label >
615616 <select v-model =" form.type" @change =" form.config = {}" :disabled =" !!editingId" >
616- <option v-for =" p in plugins" :key =" p.type" :value =" p.type" >{{ p.type }}</option >
617+ <option v-for =" p in plugins" :key =" p.type" :value =" p.type" >{{ p.label }}</option >
617618 </select >
618619 </div >
619620 <template v-for =" (field , key ) in currentSchema " :key =" key " >
0 commit comments