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
11246bae
Commit
11246bae
authored
1 year ago
by
ml bonhomme
Committed by
Bastien Abadie
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Do not show the Create model button when selecting a model for a Workers process
parent
cfa51cb5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1479
Do not show the Create model button when selecting a model for a Workers process
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Model/Selection.vue
+1
-1
1 addition, 1 deletion
src/components/Model/Selection.vue
src/views/Model/List.vue
+14
-1
14 additions, 1 deletion
src/views/Model/List.vue
with
15 additions
and
2 deletions
src/components/Model/Selection.vue
+
1
−
1
View file @
11246bae
...
...
@@ -22,7 +22,7 @@
is-large
title=
"Select a model version for this worker"
>
<ModelList
:process-id=
"processId"
:worker-run-id=
"runId"
/>
<ModelList
:process-id=
"processId"
:worker-run-id=
"runId"
:create-button=
"false"
/>
</Modal>
</span>
</
template
>
...
...
This diff is collapsed.
Click to expand it.
src/views/Model/List.vue
+
14
−
1
View file @
11246bae
...
...
@@ -2,7 +2,11 @@
<main
class=
"container is-fluid"
>
<div
class=
"columns"
>
<div
class=
"field column is-one-third"
>
<router-link
class=
"button is-primary is-pulled-right"
:to=
"
{ name: 'model-create' }">
<router-link
class=
"button is-primary is-pulled-right"
:to=
"
{ name: 'model-create' }"
v-if="createButton"
>
Create a model
</router-link>
...
...
@@ -104,6 +108,15 @@ export default {
workerRunId
:
{
type
:
String
,
default
:
''
},
/*
* When selecting a model to use with a worker in a Workers process, it does
* not make sense to show the Create model button to create an empty model
* version. This prop can be used to show or hide that button.
*/
createButton
:
{
type
:
Boolean
,
default
:
true
}
},
data
:
()
=>
({
...
...
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