Skip to content

Commit

Permalink
feat: hide custom fields in summary tab only amidaware/tacticalrmm#1745
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jan 28, 2024
1 parent 14bde96 commit bf87972
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/agents/SummaryTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export default {
);
if (
definition &&
!definition.hide_in_ui &&
!definition.hide_in_summary &&
customField.value?.length > 0
) {
ret.push({
Expand Down
6 changes: 6 additions & 0 deletions src/components/modals/coresettings/CustomFieldsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@
v-model="localField.hide_in_ui"
color="green"
/>
<q-toggle
label="Hide in Summary Tab"
v-model="localField.hide_in_summary"
color="green"
/>
</q-card-section>
<q-card-actions align="right">
<q-btn flat label="Cancel" v-close-popup />
Expand Down Expand Up @@ -172,6 +177,7 @@ export default {
default_value_bool: false,
default_values_multiple: [],
hide_in_ui: false,
hide_in_summary: false,
},
modelOptions: [
{ label: "Client", value: "client" },
Expand Down
11 changes: 11 additions & 0 deletions src/components/modals/coresettings/CustomFieldsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
<q-td>
<q-icon v-if="props.row.hide_in_ui" name="check" />
</q-td>
<!-- hide in summary tab -->
<q-td>
<q-icon v-if="props.row.hide_in_summary" name="check" />
</q-td>
<!-- default value -->
<q-td v-if="props.row.type === 'checkbox'">
{{ props.row.default_value_bool }}
Expand Down Expand Up @@ -123,6 +127,13 @@ export default {
align: "left",
sortable: true,
},
{
name: "hide_in_summary",
label: "Hide in Summary Tab",
field: "hide_in_summary",
align: "left",
sortable: true,
},
{
name: "default_value",
label: "Default Value",
Expand Down

0 comments on commit bf87972

Please sign in to comment.