Skip to content

Commit

Permalink
Merge pull request #485 from nextcloud/backport/479/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(UI): Fix default settings for "Unit" and "From date of"
  • Loading branch information
max-nextcloud authored Feb 26, 2024
2 parents 5238605 + f91002f commit 140eae0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ export default {
{ 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 @@ -266,8 +266,8 @@ export default {
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

0 comments on commit 140eae0

Please sign in to comment.