Skip to content
Snippets Groups Projects
Commit 3d461281 authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Bastien Abadie
Browse files

selecting mode = template disables the configuration select

parent 3da3d708
No related branches found
No related tags found
1 merge request!1147selecting mode = template disables the configuration select
......@@ -35,7 +35,11 @@
</p>
<p class="control">
<span class="select">
<select v-model="filters.with_workflow" v-on:change="updateFilters">
<select
v-model="filters.with_workflow"
v-on:change="updateFilters"
:disabled="filters.mode === 'template'"
>
<option value="">Any configuration</option>
<option :value="true">Configured</option>
<option :value="false">Not configured</option>
......@@ -132,6 +136,7 @@ export default {
...mapMutations('notifications', ['notify']),
updateFilters () {
this.filters.page = 1
if (this.filters.mode === 'template') this.filters.with_workflow = ''
this.$router.push({
name: this.$route.name,
query: removeEmptyStrings(this.filters)
......
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