This commit is contained in:
Jacob Levine 2019-03-07 21:16:54 -06:00
parent 302f6b794d
commit ed151f1707
2 changed files with 10 additions and 0 deletions

View File

@ -76,6 +76,9 @@ function updun() {
}).then(function() { }).then(function() {
document.getElementById('newDN').innerHTML = firebase.auth().currentUser.displayName; document.getElementById('newDN').innerHTML = firebase.auth().currentUser.displayName;
document.getElementById('status').innerHTML = "You are signed in as: " + firebase.auth().currentUser.displayName; document.getElementById('status').innerHTML = "You are signed in as: " + firebase.auth().currentUser.displayName;
firebase.firestore().collection("users").doc(user.uid).set({alias:firebase.auth().currentUser.displayName}}, {
merge: true
}
}).catch(function(error) { }).catch(function(error) {
alert("there was a problem: " + error) alert("there was a problem: " + error)
}); });

View File

@ -28,6 +28,13 @@
<div> <div>
Scouting For: <select id="tns"></select> Scouting For: <select id="tns"></select>
</div> </div>
<h2>Submit a Report:</h2>
<div>
Match Number: <input type="text" name="" value="" id="mn">
Number of Team Scouted: <input type="text" name="" value="" id="tsn">
</div>
<h3>Sandstorm:</h3>
</div> </div>
</body> </body>
</html> </html>