🐛 Fix item display issue

This commit is contained in:
Jan Oberhauser
2020-07-10 10:12:30 +02:00
parent 5adec0a299
commit 305894d9b4
2 changed files with 77 additions and 82 deletions

View File

@@ -6,25 +6,23 @@ n8n is a free and open [fair-code](http://faircode.io) licensed node based Workf
<a href="https://raw.githubusercontent.com/n8n-io/n8n/master/assets/n8n-screenshot.png"><img src="https://raw.githubusercontent.com/n8n-io/n8n/master/assets/n8n-screenshot.png" width="550" alt="n8n.io - Screenshot"></a> <a href="https://raw.githubusercontent.com/n8n-io/n8n/master/assets/n8n-screenshot.png"><img src="https://raw.githubusercontent.com/n8n-io/n8n/master/assets/n8n-screenshot.png" width="550" alt="n8n.io - Screenshot"></a>
## Contents ## Contents
- [Demo](#demo) - [Demo](#demo)
- [Available integrations](#available-integrations) - [Available integrations](#available-integrations)
- [Documentation](#documentation) - [Documentation](#documentation)
- [Start n8n in Docker](#start-n8n-in-docker) - [Start n8n in Docker](#start-n8n-in-docker)
- [Start with tunnel](#start-with-tunnel) - [Start with tunnel](#start-with-tunnel)
- [Securing n8n](#securing-n8n) - [Securing n8n](#securing-n8n)
- [Persist data](#persist-data) - [Persist data](#persist-data)
- [Passing Sensitive Data via File](#passing-sensitive-data-via-file) - [Passing Sensitive Data via File](#passing-sensitive-data-via-file)
- [Updating a Running docker-compose Instance](#updating-a-running-docker-compose-instance) - [Updating a Running docker-compose Instance](#updating-a-running-docker-compose-instance)
- [Example Setup with Lets Encrypt](#example-setup-with-lets-encrypt) - [Example Setup with Lets Encrypt](#example-setup-with-lets-encrypt)
- [What does n8n mean and how do you pronounce it](#what-does-n8n-mean-and-how-do-you-pronounce-it) - [What does n8n mean and how do you pronounce it](#what-does-n8n-mean-and-how-do-you-pronounce-it)
- [Support](#support) - [Support](#support)
- [Jobs](#jobs) - [Jobs](#jobs)
- [Upgrading](#upgrading) - [Upgrading](#upgrading)
- [License](#license) - [License](#license)
## Demo ## Demo
@@ -78,7 +76,6 @@ docker run -it --rm \
n8n start --tunnel n8n start --tunnel
``` ```
## Securing n8n ## Securing n8n
By default n8n can be accessed by everybody. This is OK if you have it only running By default n8n can be accessed by everybody. This is OK if you have it only running
@@ -93,7 +90,6 @@ N8N_BASIC_AUTH_USER=<USER>
N8N_BASIC_AUTH_PASSWORD=<PASSWORD> N8N_BASIC_AUTH_PASSWORD=<PASSWORD>
``` ```
## Persist data ## Persist data
The workflow data gets by default saved in an SQLite database in the user The workflow data gets by default saved in an SQLite database in the user
@@ -121,7 +117,6 @@ for the credentials. If none gets found n8n creates automatically one on
startup. In case credentials are already saved with a different encryption key startup. In case credentials are already saved with a different encryption key
it can not be used anymore as encrypting it is not possible anymore. it can not be used anymore as encrypting it is not possible anymore.
#### Use with MongoDB #### Use with MongoDB
> **WARNING**: Use Postgres if possible! Mongo has problems with saving large > **WARNING**: Use Postgres if possible! Mongo has problems with saving large
@@ -129,11 +124,11 @@ it can not be used anymore as encrypting it is not possible anymore.
> may be dropped in the future. > may be dropped in the future.
Replace the following placeholders with the actual data: Replace the following placeholders with the actual data:
- <MONGO_DATABASE> - MONGO_DATABASE
- <MONGO_HOST> - MONGO_HOST
- <MONGO_PORT> - MONGO_PORT
- <MONGO_USER> - MONGO_USER
- <MONGO_PASSWORD> - MONGO_PASSWORD
``` ```
docker run -it --rm \ docker run -it --rm \
@@ -148,16 +143,15 @@ docker run -it --rm \
A full working setup with docker-compose can be found [here](https://github.com/n8n-io/n8n/blob/master/docker/compose/withMongo/README.md) A full working setup with docker-compose can be found [here](https://github.com/n8n-io/n8n/blob/master/docker/compose/withMongo/README.md)
#### Use with PostgresDB #### Use with PostgresDB
Replace the following placeholders with the actual data: Replace the following placeholders with the actual data:
- <POSTGRES_DATABASE> - POSTGRES_DATABASE
- <POSTGRES_HOST> - POSTGRES_HOST
- <POSTGRES_PASSWORD> - POSTGRES_PASSWORD
- <POSTGRES_PORT> - POSTGRES_PORT
- <POSTGRES_USER> - POSTGRES_USER
- <POSTGRES_SCHEMA> - POSTGRES_SCHEMA
``` ```
docker run -it --rm \ docker run -it --rm \
@@ -177,15 +171,14 @@ docker run -it --rm \
A full working setup with docker-compose can be found [here](https://github.com/n8n-io/n8n/blob/master/docker/compose/withPostgres/README.md) A full working setup with docker-compose can be found [here](https://github.com/n8n-io/n8n/blob/master/docker/compose/withPostgres/README.md)
#### Use with MySQL #### Use with MySQL
Replace the following placeholders with the actual data: Replace the following placeholders with the actual data:
- <MYSQLDB_DATABASE> - MYSQLDB_DATABASE
- <MYSQLDB_HOST> - MYSQLDB_HOST
- <MYSQLDB_PASSWORD> - MYSQLDB_PASSWORD
- <MYSQLDB_PORT> - MYSQLDB_PORT
- <MYSQLDB_USER> - MYSQLDB_USER
``` ```
docker run -it --rm \ docker run -it --rm \
@@ -202,7 +195,6 @@ docker run -it --rm \
n8n start n8n start
``` ```
## Passing Sensitive Data via File ## Passing Sensitive Data via File
To avoid passing sensitive information via environment variables "_FILE" may be To avoid passing sensitive information via environment variables "_FILE" may be
@@ -221,7 +213,6 @@ The following environment variables support file input:
- N8N_BASIC_AUTH_PASSWORD_FILE - N8N_BASIC_AUTH_PASSWORD_FILE
- N8N_BASIC_AUTH_USER_FILE - N8N_BASIC_AUTH_USER_FILE
## Example Setup with Lets Encrypt ## Example Setup with Lets Encrypt
A basic step by step example setup of n8n with docker-compose and Lets Encrypt is available on the A basic step by step example setup of n8n with docker-compose and Lets Encrypt is available on the

View File

@@ -19,7 +19,7 @@
<div class="header"> <div class="header">
<div class="title-text"> <div class="title-text">
<strong v-if="dataCount < this.MAX_DISPLAY_ITEMS_AUTO_ALL && dataSize < MAX_DISPLAY_DATA_SIZE"> <strong v-if="dataCount < maxDisplayItems && dataSize < MAX_DISPLAY_DATA_SIZE">
Results: {{ dataCount }} Results: {{ dataCount }}
</strong> </strong>
<strong v-else>Results: <strong v-else>Results:
@@ -248,7 +248,11 @@ export default mixins(
return executionData.resultData.runData; return executionData.resultData.runData;
}, },
maxDisplayItemsOptions (): number[] { maxDisplayItemsOptions (): number[] {
return [25, 50, 100, 250, 500, 1000, this.dataCount].filter(option => option <= this.dataCount); const options = [25, 50, 100, 250, 500, 1000].filter(option => option <= this.dataCount);
if (!options.includes(this.dataCount)) {
options.push(this.dataCount);
}
return options;
}, },
node (): INodeUi | null { node (): INodeUi | null {
return this.$store.getters.activeNode; return this.$store.getters.activeNode;