Skip to content
Snippets Groups Projects
Commit 11246bae authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Bastien Abadie
Browse files

Do not show the Create model button when selecting a model for a Workers process

parent cfa51cb5
No related branches found
No related tags found
1 merge request!1479Do not show the Create model button when selecting a model for a Workers process
......@@ -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>
......
......@@ -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: () => ({
......
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