Browse Source

Quick fix with Stations not showing

theflametrooper 8 years ago
parent
commit
46ff0965f5
1 changed files with 5 additions and 3 deletions
  1. 5 3
      frontend/components/pages/Home.vue

+ 5 - 3
frontend/components/pages/Home.vue

@@ -117,9 +117,11 @@
 							console.log(123);
 							station.class = {'station-red': true}
 						} else if (station.type === 'community') {
-							if (station.owner === userId) {
-								station.class = {'station-blue': true}
-							}
+							auth.getStatus((authenticated, role, username, userId) => {
+								if (station.owner === userId) {
+									station.class = {'station-blue': true}
+								}
+							});
 						}
 						if (station.type == 'official') _this.stations.official.push(station);
 						else _this.stations.community.push(station);