aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-08-25 14:16:51 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-08-25 14:16:51 +0200
commita6f21e2623d76519402f7ca9c6d9f75ccd0ba5c2 (patch)
treee2c5c9b8a53d9c1be08c08c2d822715ff224d727 /src
parentAdd "Change Server" links to login and signup (diff)
downloadferdium-app-a6f21e2623d76519402f7ca9c6d9f75ccd0ba5c2.tar.gz
ferdium-app-a6f21e2623d76519402f7ca9c6d9f75ccd0ba5c2.tar.zst
ferdium-app-a6f21e2623d76519402f7ca9c6d9f75ccd0ba5c2.zip
Remove news due to logout issues
Diffstat (limited to 'src')
-rw-r--r--src/api/apiBase.js6
-rw-r--r--src/stores/NewsStore.js3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/api/apiBase.js b/src/api/apiBase.js
index 42f09eaa8..ab47c78ee 100644
--- a/src/api/apiBase.js
+++ b/src/api/apiBase.js
@@ -8,9 +8,11 @@ import {
8 8
9const apiBase = () => { 9const apiBase = () => {
10 let url; 10 let url;
11 if (!window.ferdi.stores.settings || !window.ferdi.stores.settings.all) { 11 if (!window.ferdi || 
12 !window.ferdi.stores.settings || 
13 !window.ferdi.stores.settings.all) {
12 // Stores have not yet been loaded - send invalid URL to force a retry when stores are loaded 14 // Stores have not yet been loaded - send invalid URL to force a retry when stores are loaded
13 url = 'https://localhost:9999'; 15 url = 'https://1.1.1.1';
14 } else if (window.ferdi.stores.settings.all.app.server) { 16 } else if (window.ferdi.stores.settings.all.app.server) {
15 // Load URL from store 17 // Load URL from store
16 url = window.ferdi.stores.settings.all.app.server; 18 url = window.ferdi.stores.settings.all.app.server;
diff --git a/src/stores/NewsStore.js b/src/stores/NewsStore.js
index 86e092592..92d34029e 100644
--- a/src/stores/NewsStore.js
+++ b/src/stores/NewsStore.js
@@ -29,7 +29,8 @@ export default class NewsStore extends Store {
29 } 29 }
30 30
31 @computed get latest() { 31 @computed get latest() {
32 return this.latestNewsRequest.execute().result || []; 32 // return this.latestNewsRequest.execute().result || [];
33 return []
33 } 34 }
34 35
35 // Actions 36 // Actions