mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-12 22:26:18 +00:00
final page fix
This commit is contained in:
parent
12e39ecc84
commit
ee4ee316dd
@ -48,13 +48,13 @@ window.onload = function() {
|
||||
window.location.replace('../');
|
||||
}
|
||||
teamAssoc = firebase.firestore().collection('UserAssociations').doc(user.uid);
|
||||
teamAssoc.get().then(function(doc) {
|
||||
teamAssoc.get()..then(function(doc) {
|
||||
if (doc.exists) {
|
||||
list = doc.data()
|
||||
teamNums = Object.keys(list)
|
||||
document.getElementById('teammem').innerHTML = ""
|
||||
for (var i = 0; i < teamNums.length; i++) {
|
||||
document.getElementById('teammem').innerHTML += "<tr><td>" + teamNums[i] + "</td><td>" + list[teamNums[i]] + "</td></tr>"
|
||||
document.getElementById('teammem').innerHTML += "<tr><td>" + teamNums[i] + "</td><td>" + list[teamNums[i]] + "</td>" + "<td><input type='button' class='btn' value='leave' onclick='leaveTeam(" + teamNums[i] + ")'></td></tr>"
|
||||
}
|
||||
} else {
|
||||
document.getElementById('teammem').innerHTML = "<tr><td>You are not part of any teams</td></tr>"
|
||||
|
Loading…
Reference in New Issue
Block a user