Merge branch 'master' into ie/fix-toggler

This commit is contained in:
andrewdds
2018-09-17 15:19:48 -04:00
committed by GitHub
35 changed files with 465 additions and 264 deletions

View File

@@ -0,0 +1,28 @@
import textinput from '../text_input'
export default {
name: 'ccpo-approval',
components: {
textinput
},
data: function () {
return {
approving: false,
denying: false
}
},
methods: {
setReview: function (e) {
if (e.target.value === 'approving') {
this.approving = true
this.denying = false
} else {
this.approving = false
this.denying = true
}
},
}
}

View File

@@ -0,0 +1,21 @@
import { format } from 'date-fns'
export default {
name: 'local-datetime',
props: {
timestamp: String,
format: {
type: String,
default: 'MMM D YYYY H:mm'
}
},
computed: {
displayTime: function () {
return format(this.timestamp, this.format)
}
},
template: '<time v-bind:datetime="timestamp">{{ this.displayTime }}</time>'
}

View File

@@ -19,7 +19,8 @@ export default {
default: () => ''
},
initialErrors: Array,
paragraph: String
paragraph: String,
noMaxWidth: String
},
data: function () {