Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(UI): Fix default settings for "Unit" and "From date of" #479

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<th class="retention-heading__after">
{{ t('files_retention','From date of') }}
</th>
<th class="retention-heading__action"></th>

Check warning on line 21 in src/AdminSettings.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Require self-closing on HTML elements (<th>)
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -130,13 +130,13 @@
{ id: 2, label: t('files_retention', 'Months') },
{ id: 3, label: t('files_retention', 'Years') },
],
newUnit: [],
newUnit: {},

afterOptions: [
{ id: 0, label: t('files_retention', 'Creation') },
{ id: 1, label: t('files_retention', 'Last modification') },
],
newAfter: [],
newAfter: {},

newAmount: '14', // FIXME TextField does not accept numbers …

Expand Down Expand Up @@ -208,7 +208,7 @@
this.loadingNotifyBefore = false
showError(t('files_retention', 'An error occurred while changing the setting'))
}.bind(this),
}

Check warning on line 211 in src/AdminSettings.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Missing trailing comma
)
},

Expand Down Expand Up @@ -266,8 +266,8 @@
resetForm() {
this.newTag = -1
this.newAmount = '14'
this.newUnit = [this.unitOptions[0]]
this.newAfter = [this.afterOptions[0]]
this.newUnit = this.unitOptions[0]
this.newAfter = this.afterOptions[0]
},
},
}
Expand Down
Loading