Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Frontend
Commits
85b172cf
Commit
85b172cf
authored
2 years ago
by
Erwan Rouchet
Committed by
Bastien Abadie
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Replace router links with disabled links in HeaderActions
parent
e2ddcba2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1453
Replace router links with disabled links in HeaderActions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/HeaderActions.vue
+15
-10
15 additions, 10 deletions
src/components/HeaderActions.vue
with
15 additions
and
10 deletions
src/components/HeaderActions.vue
+
15
−
10
View file @
85b172cf
...
...
@@ -127,7 +127,8 @@
<i
class=
"icon-add-square"
></i>
Add folder
</a>
<router-link
<component
:is=
"hasContribPrivilege ? 'router-link' : 'a'"
class=
"dropdown-item"
:disabled=
"!hasContribPrivilege || !hasFolderTypes || null"
:to=
"hasContribPrivilege ?
{ name: 'process-files', params: { corpusId, folderId: elementId } } : ''"
...
...
@@ -135,8 +136,9 @@
>
<i
class=
"icon-doc"
></i>
Import files
</router-link>
<router-link
</component>
<component
:is=
"hasContribPrivilege ? 'router-link' : 'a'"
class=
"dropdown-item"
:disabled=
"!hasContribPrivilege || !hasFolderTypes || null"
:to=
"hasContribPrivilege ?
{ name: 'process-buckets', params: { corpusId, folderId: elementId } } : ''"
...
...
@@ -144,7 +146,7 @@
>
<i
class=
"icon-doc"
></i>
Import files from S3
</
router-link
>
</
component
>
</
template
>
<!-- Move button for elements with write rights -->
...
...
@@ -183,7 +185,8 @@
</a>
<!-- Train a machine learning process. A contributor right is required -->
<router-link
<component
:is=
"hasContribPrivilege ? 'router-link' : 'a'"
v-if=
"!elementId"
class=
"dropdown-item"
:disabled=
"!hasContribPrivilege || null"
...
...
@@ -192,10 +195,11 @@
>
<i
class=
"icon-cog-alt"
></i>
Train a model
</
router-link
>
</
component
>
<!-- Edit button for writable corpora -->
<router-link
<component
:is=
"hasContribPrivilege ? 'router-link' : 'a'"
v-if=
"!elementId"
:disabled=
"!hasAdminPrivilege || null"
class=
"dropdown-item"
...
...
@@ -204,7 +208,7 @@
>
<i
class=
"icon-edit"
></i>
Project information
</
router-link
>
</
component
>
<!-- Exports modal for verified users on all corpora -->
<a
v-if=
"!elementId && isVerified"
class=
"dropdown-item"
v-on:click=
"exportsModal = true"
>
...
...
@@ -221,7 +225,8 @@
</router-link>
<!-- Workers statistics for administrable corpora -->
<router-link
<component
:is=
"hasAdminPrivilege ? 'router-link' : 'a'"
v-if=
"!elementId"
:disabled=
"!hasAdminPrivilege || null"
class=
"dropdown-item"
...
...
@@ -230,7 +235,7 @@
>
<i
class=
"icon-chart"
></i>
Workers activity
</
router-link
>
</
component
>
<
template
v-if=
"isVerified && hasFeature('selection')"
>
<!-- Select/Unselect button for elements -->
...
...
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