Add support for toggling visibility of email profile settings

This commit is contained in:
Lance Edgar 2022-08-06 18:38:17 -05:00
parent 7d3f2e6bdf
commit d52a186e12
5 changed files with 188 additions and 18 deletions

View file

@ -135,7 +135,7 @@
</div>
<b-table
:data="data"
:data="visibleData"
## :columns="columns"
:loading="loading"
:row-class="getRowClass"
@ -211,7 +211,7 @@
@click.prevent="${action.click_handler}"
% endif
>
<i class="fas fa-${action.icon}"></i>
${action.render_icon()|n}
${action.render_label()|n}
</a>
&nbsp;
@ -296,15 +296,24 @@
let ${grid.component_studly} = {
template: '#${grid.component}-template',
mixins: [FormPosterMixin],
props: {
csrftoken: String,
},
computed: {
// note, can use this with v-model for hidden 'uuids' fields
selected_uuids: function() {
return this.checkedRowUUIDs().join(',')
},
// nb. this can be overridden if needed, e.g. to dynamically
// show/hide certain records in a static data set
visibleData() {
return this.data
},
},
methods: {