-
Notifications
You must be signed in to change notification settings - Fork 19
fix: misleading mesesage in select field during wp creation #924
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
Conversation
Signed-off-by: nabim777 <[email protected]>
Signed-off-by: nabim777 <[email protected]>
8419056 to
02be993
Compare
Signed-off-by: nabim777 <[email protected]>
src/views/CreateWorkPackageModal.vue
Outdated
| if (this.project.label === null) { | ||
| return t('integration_openproject', 'Please select a project first!') | ||
| } | ||
| return t('integration_openproject', `No matching ${fieldName} found!`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fieldName is not translatable. Please use messages store.
https://github.com/nextcloud/integration_openproject/blob/master/src/constants/messages.js
src/views/CreateWorkPackageModal.vue
Outdated
| if (this.project.label === null) { | ||
| return t('integration_openproject', 'Please select a project first!') | ||
| } | ||
| return t('integration_openproject', `No matching ${fieldName} found!`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (this.project.label === null) { | |
| return t('integration_openproject', 'Please select a project first!') | |
| } | |
| return t('integration_openproject', `No matching ${fieldName} found!`) | |
| if (this.project.label === null) { | |
| return message.pleaseSelectProject | |
| } | |
| if (fieldName === 'status') { | |
| return message.noMatchingStatusFound | |
| } else if (fieldName === 'type') { | |
| return message.noMatchingTypeFound | |
| } | |
| ... |
CHANGELOG.md
Outdated
| ### Fixed | ||
| - Fix: Work package creation with a non-existent project [#923](https://github.com/nextcloud/integration_openproject/pull/923) | ||
| - Fix: Project Value in the field could not be removed [#923](https://github.com/nextcloud/integration_openproject/pull/923) | ||
| - Fix: misleading mesesage in select field during wp creation [#924] (https://github.com/nextcloud/integration_openproject/pull/924) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Fix: misleading mesesage in select field during wp creation [#924] (https://github.com/nextcloud/integration_openproject/pull/924) | |
| - Fix: Misleading mesesage in select field during wp creation [#924] (https://github.com/nextcloud/integration_openproject/pull/924) |
| }) | ||
|
|
||
| const input = wrapper.find(inputSelector) | ||
| await input.setValue('non-existent-assignee') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| await input.setValue('non-existent-assignee') | |
| await input.setValue('non-existent-search') |
Signed-off-by: nabim777 <[email protected]>
34867dd to
da691d3
Compare
Signed-off-by: nabim777 <[email protected]>
Signed-off-by: nabim777 <[email protected]>
Description
This PR fixes a misleading message that appears in the option field, such as
type,status,assigneeduring work package creation.Steps to reproduce
Step 1: Open the work package creation model
Step 2: Fill up the project field
Step 3: In type field, try to fill with value that does not exist (you can try notexist)
Related Issue or Workpackage
Screenshots (if appropriate):
Before
when the project field is filled, then fill up the
type,statusandassigneewith notexist valueAfter
when the project field is filled, then fill up the
type,statusandassigneewith notexist valueTypes of changes
Checklist:
CHANGELOG.mdfile