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

Add missing computed property to edit view #1473

Merged
merged 1 commit into from
Jan 31, 2023
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
Add missing computed property to edit view
This fixes the wrong text being shown in the edit view when the form is expired.

Signed-off-by: Chartman123 <chris-hartmann@gmx.de>
  • Loading branch information
Chartman123 committed Jan 31, 2023
commit c16a778c906c18c24ef27c6befc863b9dd5c8ae8
7 changes: 7 additions & 0 deletions src/views/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ export default {
return this.form.questions.reduce((isUsed, question) => isUsed || question.isRequired, false)
},

/**
* Check if form is expired
*/
isExpired() {
return this.form.expires && moment().unix() > this.form.expires
},

infoMessage() {
let message = ''
if (this.form.isAnonymous) {
Expand Down