mirror of
https://github.com/acatoire/bipbipzizik.git
synced 2026-03-10 08:01:18 +00:00
Adds support for local saved sessions
This commit is contained in:
@@ -37,6 +37,11 @@ class BBZZAdmin extends LitElement {
|
||||
this.cards = [];
|
||||
this.configs = [];
|
||||
|
||||
// Grabbing logged in user from the local sessions
|
||||
firebase.auth().onAuthStateChanged(user => {
|
||||
this.user = user;
|
||||
});
|
||||
|
||||
const dbCardsReference = db.ref('/cards_prod');
|
||||
const dbConfigReference = db.ref('/config_prod');
|
||||
|
||||
@@ -79,7 +84,7 @@ class BBZZAdmin extends LitElement {
|
||||
console.log("config child added");
|
||||
const configId = data.key;
|
||||
const configData = data.val();
|
||||
this.configs = [...this.configs, {configId, configData}]
|
||||
this.configs = [...this.configs, {configId, configData}];
|
||||
});
|
||||
|
||||
dbConfigReference.on('child_changed', (data) => {
|
||||
|
||||
Reference in New Issue
Block a user