From 156a1ef5d4b6cab8299340f857b0b1918acdbcaf Mon Sep 17 00:00:00 2001 From: saber-nyan Date: Sun, 19 May 2019 10:50:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80=20=D1=81=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=86=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sidebar.vue | 2 +- src/store.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index ce456d0..02aae4b 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -141,7 +141,7 @@ export default { }); }, onGotNewStream(stream) { - if (this.streams.length > 50) { + if (this.streams.length > this.$store.state.pageSize * 2) { this.streams.pop(); } this.streams.unshift(stream); diff --git a/src/store.js b/src/store.js index 17e4215..1d0f938 100644 --- a/src/store.js +++ b/src/store.js @@ -11,7 +11,7 @@ export default new Vuex.Store({ apiPassword: '123456', hexdumpBlockSize: 16, hexdumpLineNumberBase: 10, - pageSize: 50, + pageSize: 25, displayFavOnly: false, }, mutations: {