Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HUB Terra
SMS
Frontend
Commits
28d7099e
Commit
28d7099e
authored
4 years ago
by
Marc Hanisch
Browse files
Options
Downloads
Patches
Plain Diff
allows disabled state for tabs
parent
6e64e4f7
No related branches found
No related tags found
2 merge requests
!90
Draft: restructure frontend properties 2
,
!82
Restructure frontend
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/AppBarTabsExtension.vue
+9
-0
9 additions, 0 deletions
components/AppBarTabsExtension.vue
models/TabItemConfiguration.ts
+7
-4
7 additions, 4 deletions
models/TabItemConfiguration.ts
with
16 additions
and
4 deletions
components/AppBarTabsExtension.vue
+
9
−
0
View file @
28d7099e
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
models/TabItemConfiguration.ts
+
7
−
4
View file @
28d7099e
export
interface
ITabItem
Route
{
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment