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

fix(editor): Show error in RLC if credentials are not set #6108

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

MiloradFilipovic
Copy link
Contributor

Github issue / Community forum post (link here to close automatically):

@MiloradFilipovic MiloradFilipovic self-assigned this Apr 27, 2023
@github-actions
Copy link
Contributor

Great PR! Please pay attention to the following items before merging:

Files matching packages/**:

  • If fixing bug, added test to cover scenario.
  • If addressing forum or Github issue, added link to description.

Files matching **/*.vue:

  • Used composition API for all new components.
  • Added component or unit tests to cover functionality.

Files matching packages/editor-ui/**/*.vue:

  • Added E2E if adding new features.
  • Used design system tokens (colors, spacings...) where possible.

Make sure to check off this list before asking for review.

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Apr 27, 2023
@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (59aee22) 19.19% compared to head (ac8a6d3) 19.19%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6108   +/-   ##
=======================================
  Coverage   19.19%   19.19%           
=======================================
  Files        2589     2589           
  Lines      116890   116890           
  Branches    18339    18339           
=======================================
  Hits        22439    22439           
  Misses      93806    93806           
  Partials      645      645           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

<a v-if="credentialsNotSet" @click="createNewCredential">{{
$locale.baseText('resourceLocator.mode.list.error.description.part2.noCredentials')
}}</a>
<a v-else-if="hasCredential" @click="openCredential">{{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to not repeat template parts you could use the condition inside a common click handler, even inline

Suggested change
<a v-else-if="hasCredential" @click="openCredential">{{
<a @click="() => hasCredential ? openCredential() : createNewCredential()">{{

Actually this doesn't look much nicer but at least fewer lines. I leave it up to you

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@MiloradFilipovic MiloradFilipovic merged commit 2c240a0 into master Apr 27, 2023
26 checks passed
@MiloradFilipovic MiloradFilipovic deleted the NODE-436-rlc-no-credentials-error branch April 27, 2023 12:28
MiloradFilipovic added a commit that referenced this pull request Apr 27, 2023
* master:
  fix(editor): Remove pagination from binary data output (#6093)
  fix(editor): Show error in RLC if credentials are not set (#6108)
  fix(editor): Loading state for executions tab (#6100)
  ci: Additionally checkout PR head for e2e tests (no-changelog) (#6105)
  fix(core): Skip auth for controllers/routes that don't use the `Authorized` decorator, or use `Authorized('none')` (#6106)
  fix(editor): Disable changing of email and pw when SAML login enabled (#6104)
  fix(HTTP Request Node): Always lowercase headers
  fix(Compression Node): Fix issue with decompression failing with uppercase extensions (#6098)
  fix(Mattermost Node): Fix base url trailing slash error (#6097)
  feat(Item Lists Node): Split out items work on objects as well as arrays
@janober
Copy link
Member

janober commented May 2, 2023

Got released with n8n@0.226.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants