Skip to content
Snippets Groups Projects
Commit 28d7099e authored by Marc Hanisch's avatar Marc Hanisch
Browse files

allows disabled state for tabs

parent 6e64e4f7
No related branches found
No related tags found
2 merge requests!90Draft: restructure frontend properties 2,!82Restructure frontend
......@@ -46,6 +46,7 @@ permissions and limitations under the Licence.
<v-tab
v-else-if="isRoute(tab)"
:key="index"
:disabled="tab.disabled"
nuxt
:to="tab.to"
>
......@@ -54,10 +55,18 @@ permissions and limitations under the Licence.
<v-tab
v-else-if="isLink(tab)"
:key="index"
:disabled="tab.disabled"
:href="tab.href"
>
{{ tab.name }}
</v-tab>
<v-tab
v-else
:key="index"
:disabled="tab.disabled"
>
{{ tab.name }}
</v-tab>
</template>
</v-tabs>
</template>
......
export interface ITabItemRoute {
export interface ITabItem {
name: string
disabled?: boolean
}
export interface ITabItemRoute extends ITabItem {
to: string
}
export interface ITabItemLink {
name: string
export interface ITabItemLink extends ITabItem {
href: string
}
export type TabItemConfiguration = string | ITabItemRoute | ITabItemLink
export type TabItemConfiguration = string | ITabItem | ITabItemRoute | ITabItemLink
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment