mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
fix(webui): toasts above sheets; drop unreachable alias helpers
Stack the toast viewport on perfect-design's --z-toast token so it sits above Sheet overlays, and add a harness check that the toast is the topmost element at its centre while a sheet is open. Delete useAliasNames, lib/alias and its spec, which nothing imports since the shadcn migration removed AliasBadge.
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import { computed } from 'vue'
|
||||
|
||||
import { aliasNameSet } from '@/lib/alias'
|
||||
import { useDashboardStore } from '@/stores/dashboard'
|
||||
|
||||
/** useAliasNames exposes isAlias(id): true when id is a configured model alias (from the polled overview). */
|
||||
export function useAliasNames() {
|
||||
const dashboard = useDashboardStore()
|
||||
const names = computed(() => aliasNameSet(dashboard.overview?.aliases))
|
||||
return { isAlias: (id: string): boolean => names.value.has(id) }
|
||||
}
|
||||
Reference in New Issue
Block a user