{{ timeSpanCreated }}
-
+
{{ timeSpanExpiration }}
@@ -150,13 +150,13 @@ export default {
computed: {
accessType() {
- if (this.form.event.access === 'public') {
+ if (this.form.form.access === 'public') {
return t('forms', 'Public access')
- } else if (this.form.event.access === 'select') {
+ } else if (this.form.form.access === 'select') {
return t('forms', 'Only shared')
- } else if (this.form.event.access === 'registered') {
+ } else if (this.form.form.access === 'registered') {
return t('forms', 'Registered users only')
- } else if (this.form.event.access === 'hidden') {
+ } else if (this.form.form.access === 'hidden') {
return t('forms', 'Hidden form')
} else {
return ''
@@ -164,12 +164,12 @@ export default {
},
timeSpanCreated() {
- return moment(this.form.event.created, 'YYYY-MM-DD HH:mm')
+ return moment(this.form.form.created, 'YYYY-MM-DD HH:mm')
},
timeSpanExpiration() {
- if (this.form.event.expiration) {
- return moment(this.form.event.expirationDate)
+ if (this.form.form.expires) {
+ return moment(this.form.form.expirationDate)
} else {
return t('forms', 'never')
}
@@ -179,8 +179,8 @@ export default {
return this.form.shares.length
},
- voteUrl() {
- return OC.generateUrl('apps/forms/form/') + this.form.event.hash
+ submitUrl() {
+ return OC.generateUrl('apps/forms/form/') + this.form.form.hash
},
},
@@ -196,7 +196,7 @@ export default {
copyLink() {
// this.$emit('copyLink')
- this.$copyText(window.location.origin + this.voteUrl).then(
+ this.$copyText(window.location.origin + this.submitUrl).then(
function(e) {
OC.Notification.showTemporary(t('forms', 'Link copied to clipboard'))
},
@@ -217,6 +217,7 @@ export default {
},
}
+