diff --git a/@xen-orchestra/lite/src/components/RouterTab.vue b/@xen-orchestra/lite/src/components/RouterTab.vue index ba35972099c..be292a189e5 100644 --- a/@xen-orchestra/lite/src/components/RouterTab.vue +++ b/@xen-orchestra/lite/src/components/RouterTab.vue @@ -1,18 +1,18 @@ - - + diff --git a/@xen-orchestra/lite/src/components/vm/VmTabBar.vue b/@xen-orchestra/lite/src/components/vm/VmTabBar.vue index 03d8c334ff4..11648620a75 100644 --- a/@xen-orchestra/lite/src/components/vm/VmTabBar.vue +++ b/@xen-orchestra/lite/src/components/vm/VmTabBar.vue @@ -1,5 +1,5 @@ - + {{ $t('dashboard') }} @@ -24,12 +24,12 @@ {{ $t('tasks') }} - + diff --git a/@xen-orchestra/lite/src/stories/web-core/tab/tab-item.story.vue b/@xen-orchestra/lite/src/stories/web-core/tab/tab-item.story.vue index 04cf1573283..3e5dfbb425f 100644 --- a/@xen-orchestra/lite/src/stories/web-core/tab/tab-item.story.vue +++ b/@xen-orchestra/lite/src/stories/web-core/tab/tab-item.story.vue @@ -3,19 +3,19 @@ v-slot="{ properties, settings }" :params="[ prop('disabled').bool().widget().ctx(), - prop('active').bool().widget(), + prop('selected').bool().widget(), prop('tag').str().default('span'), slot(), setting('label').widget(text()).preset('Foobar'), setting('counter').widget(text()), ]" > - - + + {{ settings.label }} - - + + @@ -24,6 +24,6 @@ import ComponentStory from '@/components/component-story/ComponentStory.vue' import { prop, setting, slot } from '@/libs/story/story-param' import { text } from '@/libs/story/story-widget' import VtsCounter from '@core/components/counter/VtsCounter.vue' -import TabItem from '@core/components/tab/TabItem.vue' -import TabList from '@core/components/tab/TabList.vue' +import VtsTabItem from '@core/components/tab/VtsTabItem.vue' +import VtsTabList from '@core/components/tab/VtsTabList.vue' diff --git a/@xen-orchestra/lite/src/stories/web-core/tab/tab-list.story.vue b/@xen-orchestra/lite/src/stories/web-core/tab/tab-list.story.vue index be09517f843..8c0d895388c 100644 --- a/@xen-orchestra/lite/src/stories/web-core/tab/tab-list.story.vue +++ b/@xen-orchestra/lite/src/stories/web-core/tab/tab-list.story.vue @@ -1,19 +1,19 @@ - - Foo - Bar - Baz - + + Foo + Bar + Baz + diff --git a/@xen-orchestra/web-core/lib/components/tab/TabItem.vue b/@xen-orchestra/web-core/lib/components/tab/TabItem.vue deleted file mode 100644 index 1479dc4b256..00000000000 --- a/@xen-orchestra/web-core/lib/components/tab/TabItem.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - diff --git a/@xen-orchestra/web-core/lib/components/tab/VtsTabItem.vue b/@xen-orchestra/web-core/lib/components/tab/VtsTabItem.vue new file mode 100644 index 00000000000..6f365b82757 --- /dev/null +++ b/@xen-orchestra/web-core/lib/components/tab/VtsTabItem.vue @@ -0,0 +1,84 @@ + + + + + + + + + + diff --git a/@xen-orchestra/web-core/lib/components/tab/TabList.vue b/@xen-orchestra/web-core/lib/components/tab/VtsTabList.vue similarity index 86% rename from @xen-orchestra/web-core/lib/components/tab/TabList.vue rename to @xen-orchestra/web-core/lib/components/tab/VtsTabList.vue index c515828d658..44068679baa 100644 --- a/@xen-orchestra/web-core/lib/components/tab/TabList.vue +++ b/@xen-orchestra/web-core/lib/components/tab/VtsTabList.vue @@ -1,6 +1,6 @@ - + - + @@ -16,11 +16,15 @@ const props = withDefaults( { disabled: undefined } ) +defineSlots<{ + default(): any +}>() + useContext(DisabledContext, () => props.disabled)