start scout

This commit is contained in:
Jacob Levine
2019-03-07 20:54:55 -06:00
parent 0e358a9a14
commit 1925943660
3 changed files with 17 additions and 3 deletions

View File

@@ -38,5 +38,16 @@ window.onload = function() {
} else {
window.location.replace('../');
}
teamAssoc = firebase.firestore().collection('UserAssociations').doc(user.uid);
teamAssoc.get().then(function(doc) {
if (doc.exists) {
list = doc.data()
teamNums = Object.keys(list)
document.getElementById(tns).innerHTML = ""
for (var i = 0; i < teamNums.length; i++) {
document.getElementById(tns).innerHTML += "<option value='" + teamNums[i] + "'>" + teamNums[i] + "</option>"
}
} else {}
})
});
}