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

N8n 2954 use env variables on fe to customize #2823

Conversation

SchnapsterDog
Copy link
Contributor

No description provided.

Comment on lines 42 to 44
title: 'Error connecting to n8n',
message:
'Could not connect to server. <a onclick="window.location.reload(false);">Refresh</a> to try again',
Copy link
Contributor

Choose a reason for hiding this comment

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

these should be localized. the reason these were not localized in UM is because this was implemented before i18n was added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Localized.

@@ -39,7 +39,7 @@ export const BREAKPOINT_XL = 1920;


// templates
export const TEMPLATES_BASE_URL = `https://api-staging.n8n.io/`;
export const TEMPLATES_BASE_URL = `https://api.n8n.io/`;
Copy link
Contributor

Choose a reason for hiding this comment

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

is this used anywhere? why cannot we delete this? if this is still used by versions, let's rename it to that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are using in few places. For WorkflowTemplates (getWorkflowTemplates() inside api/workflows.js file) and ValueSurvey & ContactPrompt modals.

For the first one, maybe we can use the same thing that we are using for templates? Than I can change the constant name just for the two modals.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated as per today discussion.

@@ -33,7 +33,7 @@ export default new Router({
},
},
{
path: '/templates/:id',
path: '/template/:id',
Copy link
Contributor

Choose a reason for hiding this comment

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

can we make this back to /templates

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@Joffcom Joffcom added the n8n team Authored by the n8n team label Feb 16, 2022
@mutdmour mutdmour self-requested a review February 16, 2022 12:24
@mutdmour mutdmour merged commit 79dbd38 into feature/n8n-2853-templates-fe-all-pages-ready Feb 16, 2022
@mutdmour mutdmour deleted the n8n-2954-use-env-variables-on-fe-to-customize branch February 16, 2022 12:25
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants