Skip to content

Commit

Permalink
Remove advanced menu for retention_days
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed May 14, 2024
1 parent 54176ac commit ba019bb
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,29 +124,21 @@
{{ $t("settings.choose_the_mail_server_to_use") }}
</template>
</NsComboBox>
<!-- advanced options -->
<cv-accordion ref="accordion" class="maxwidth mg-bottom">
<cv-accordion-item :open="toggleAccordion[0]">
<template slot="title">{{ $t("settings.advanced") }}</template>
<template slot="content">
<NsTextInput
:label="$t('settings.retention_days')"
:placeholder="$t('settings.placeholder_retention_days')"
v-model.trim="retention_days"
:invalid-message="$t(error.retention_days)"
:disabled="loading.getConfiguration || loading.configureModule"
ref="retention_days"
type="number"
tooltipAlignment="start"
tooltipDirection="right"
>
<template slot="tooltip">
{{ $t('settings.retention_days_tooltip')}}
</template>
</NsTextInput>
</template>
</cv-accordion-item>
</cv-accordion>
<NsTextInput
:label="$t('settings.retention_days')"
:placeholder="$t('settings.placeholder_retention_days')"
v-model.trim="retention_days"
:invalid-message="$t(error.retention_days)"
:disabled="loading.getConfiguration || loading.configureModule"
ref="retention_days"
type="number"
tooltipAlignment="start"
tooltipDirection="right"
>
<template slot="tooltip">
{{ $t('settings.retention_days_tooltip')}}
</template>
</NsTextInput>
<cv-row v-if="error.configureModule">
<cv-column>
<NsInlineNotification
Expand Down Expand Up @@ -427,7 +419,4 @@ export default {
.mg-bottom {
margin-bottom: $spacing-06;
}
.maxwidth {
max-width: 38rem;
}
</style>

0 comments on commit ba019bb

Please sign in to comment.