Skip to content
Snippets Groups Projects
Commit d307665f authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Rename the Configured filter on processes to Started

parent b7acb621
No related branches found
No related tags found
1 merge request!1544Rename the Configured filter on processes to Started
......@@ -19,7 +19,7 @@
</router-link>
<router-link
v-if="isLoggedOn"
:to="{ name: 'processes-list', query: { created: true, with_tasks: true } }"
:to="{ name: 'processes-list', query: { created: true, started: true } }"
class="navbar-item"
exact-active-class="is-active"
>
......
......@@ -36,13 +36,13 @@
<p class="control">
<span class="select">
<select
v-model="filters.with_tasks"
v-model="filters.started"
v-on:change="updateFilters"
:disabled="filters.mode === 'template' || null"
>
<option value="">Any configuration</option>
<option :value="true">Configured</option>
<option :value="false">Not configured</option>
<option value="">Any start state</option>
<option :value="true">Started</option>
<option :value="false">Not started</option>
</select>
</span>
</p>
......@@ -135,7 +135,7 @@ export default {
mode: '',
id: '',
name: '',
with_tasks: '',
started: '',
created: ''
},
filterField: 'name',
......@@ -156,7 +156,7 @@ export default {
...mapMutations('notifications', ['notify']),
updateFilters () {
this.filters.page = 1
if (this.filters.mode === 'template') this.filters.with_tasks = ''
if (this.filters.mode === 'template') this.filters.started = ''
if (this.filterField === 'name') this.filters.id = ''
if (this.filterField === 'id') this.filters.name = ''
this.$router.push({
......
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