From 49366596a923167288caf04411b69cccb4797882 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Sat, 9 May 2020 04:17:30 +0200 Subject: [PATCH 1/4] Do not prefill title for less confusion Signed-off-by: Jan-Christoph Borchardt --- lib/Controller/ApiController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index c82fa1b..dcf3fa8 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -148,7 +148,7 @@ class ApiController extends Controller { $this->logger->debug('Could not find form'); return new Http\JSONResponse([], Http::STATUS_BAD_REQUEST); } - + if (!$this->formsService->hasUserAccess($id)) { $this->logger->debug('User has no permissions to get this form'); return new Http\JSONResponse([], Http::STATUS_FORBIDDEN); @@ -171,7 +171,7 @@ class ApiController extends Controller { 16, ISecureRandom::CHAR_HUMAN_READABLE )); - $form->setTitle('New form'); + $form->setTitle(''); $form->setDescription(''); $form->setAccess([ 'type' => 'public' @@ -279,7 +279,7 @@ class ApiController extends Controller { $this->logger->debug('Invalid type'); return new Http\JSONResponse(['message' => 'Invalid type'], Http::STATUS_BAD_REQUEST); } - + try { $form = $this->formMapper->findById($formId); } catch (IMapperException $e) { From a09c44476cbc8dca0f8fbf3c1e6536ced8ae43dd Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Sat, 9 May 2020 04:23:41 +0200 Subject: [PATCH 2/4] Do not prefill question titles either for even less confusion Signed-off-by: Jan-Christoph Borchardt --- src/components/Questions/Question.vue | 4 ++-- src/views/Create.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Questions/Question.vue b/src/components/Questions/Question.vue index f4051d9..1c03977 100644 --- a/src/components/Questions/Question.vue +++ b/src/components/Questions/Question.vue @@ -34,8 +34,8 @@
- Date: Sat, 9 May 2020 15:56:01 +0200 Subject: [PATCH 3/4] Fix navigation placeholder and also fix further wording in loading messages etc Signed-off-by: Jan-Christoph Borchardt --- lib/Controller/ApiController.php | 2 +- src/components/AppNavigationForm.vue | 17 ++++++++++++++--- src/components/Results/Submission.vue | 4 +--- src/views/Results.vue | 19 +++++++++++++++---- src/views/Submit.vue | 13 ++++++++++++- 5 files changed, 43 insertions(+), 12 deletions(-) diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index dcf3fa8..a37f07f 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -633,7 +633,7 @@ class ApiController extends Controller { // Append Display Name if (substr($submission['userId'], 0, 10) === 'anon-user-') { // Anonymous User - $submission['userDisplayName'] = $this->l10n->t('anonymous user'); + $submission['userDisplayName'] = $this->l10n->t('Anonymous response'); } else { $userEntity = $this->userManager->get($submission['userId']); diff --git a/src/components/AppNavigationForm.vue b/src/components/AppNavigationForm.vue index 7922e12..5cbf3d1 100644 --- a/src/components/AppNavigationForm.vue +++ b/src/components/AppNavigationForm.vue @@ -25,7 +25,7 @@ ref="navigationItem" :exact="true" :icon="icon" - :title="form.title" + :title="formTitle" :to="{ name: 'edit', params: { hash: form.hash } }">