Skip to content

Commit

Permalink
Merge pull request #791 from nextcloud/deathdate
Browse files Browse the repository at this point in the history
Deathdate force
  • Loading branch information
skjnldsv authored Dec 24, 2018
2 parents 620e829 + 25c38fc commit 418da92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Properties/PropertyDateTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ export default {
data() {
return {
// input type following DatePicker docs
inputType: this.property.getDefaultType() === 'date-time' || this.property.getDefaultType() === 'date-and-or-time'
inputType: this.property.type === 'date-time' || this.property.type === 'date-and-or-time'
? 'datetime'
: this.property.getDefaultType() === 'date'
: this.property.type === 'date'
? 'date'
: 'time',

Expand Down
1 change: 1 addition & 0 deletions src/models/rfcProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const properties = {
deathdate: {
readableName: t('contacts', 'Date of death'),
icon: 'icon-calendar-dark',
force: 'date',
defaultValue: {
value: new VCardTime().fromJSDate(new Date())
}
Expand Down

0 comments on commit 418da92

Please sign in to comment.