Skip to content

Commit

Permalink
fix: вернул пресеты в развернутые меню
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Dec 3, 2018
1 parent e622e6c commit 9a4ae13
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions components/Toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,33 @@
<div
:class="{'field-group__content': true, collapse: !fieldGroupsOpened[group.name]}"
>

<span
v-for="preset in columnPresets"
:key="'columnPreset' + preset.name"
v-if="preset.groups.indexOf(group.name) !== -1"
>
<button
class="column-presets__button"
@click="setPreset(preset);"
v-html="preset.name"
:title="'Вывести колонки:\n' + preset.columns.join('\n')"
></button>
</span>

<span
v-for="preset in filterPresets"
:key="preset.name"
v-if="preset.groups.indexOf(group.name) !== -1"
>
<button
class="filter-presets__button"
@click="q = preset.q"
v-html="preset.name"
:title="'Отфильтровать:\n' + preset.q"
></button>
</span>

<div
:title="field.name + (field.comment ? ` \n${field.comment}` : '') + (field.command ? ` \n${field.command}` : '')"
@click="toggleField(field)"
Expand Down

0 comments on commit 9a4ae13

Please sign in to comment.