User bearbeiten Fix
This commit is contained in:
		@@ -21,6 +21,9 @@ var vue = new Vue({
 | 
				
			|||||||
    methods: {
 | 
					    methods: {
 | 
				
			||||||
        updateUser(){
 | 
					        updateUser(){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        fotoChoose(){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        getPicUrl(){
 | 
					        getPicUrl(){
 | 
				
			||||||
            return this.picUrl;
 | 
					            return this.picUrl;
 | 
				
			||||||
@@ -34,7 +37,7 @@ var vue = new Vue({
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    created() {
 | 
					    created() {
 | 
				
			||||||
        firebase.auth().onAuthStateChanged(user => {
 | 
					        firebase.auth().onAuthStateChanged(user =>  {
 | 
				
			||||||
            if (user) {
 | 
					            if (user) {
 | 
				
			||||||
                //GetUser
 | 
					                //GetUser
 | 
				
			||||||
                this.getUser(user.uid);
 | 
					                this.getUser(user.uid);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,15 +18,7 @@
 | 
				
			|||||||
<body>
 | 
					<body>
 | 
				
			||||||
    <div id="vue-app">
 | 
					    <div id="vue-app">
 | 
				
			||||||
<!-- Square card -->
 | 
					<!-- Square card -->
 | 
				
			||||||
        <style>
 | 
					        
 | 
				
			||||||
        .demo-card-square.mdl-card {
 | 
					 | 
				
			||||||
          width: 320px;
 | 
					 | 
				
			||||||
          height: 320px;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        .demo-card-square > .mdl-card__title {
 | 
					 | 
				
			||||||
          color: #fff;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        </style>
 | 
					 | 
				
			||||||
    <div class="demo-card-image mdl-card mdl-shadow--2dp">
 | 
					    <div class="demo-card-image mdl-card mdl-shadow--2dp">
 | 
				
			||||||
        <img v-bind:src="this.dataPic" width="100%"/>
 | 
					        <img v-bind:src="this.dataPic" width="100%"/>
 | 
				
			||||||
        <div class="mdl-card__title mdl-card--expand"></div>
 | 
					        <div class="mdl-card__title mdl-card--expand"></div>
 | 
				
			||||||
@@ -34,15 +26,53 @@
 | 
				
			|||||||
                <label for="nameinput">Name: </label><input type="text" id="nameinput" v-model="name">
 | 
					                <label for="nameinput">Name: </label><input type="text" id="nameinput" v-model="name">
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        <div class="mdl-card__actions mdl-card--border">
 | 
					        <div class="mdl-card__actions mdl-card--border">
 | 
				
			||||||
                <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
 | 
					                <button @click="fotoChoose" class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
 | 
				
			||||||
                  Ändere Foto
 | 
					                  Foto setzten
 | 
				
			||||||
                </a>
 | 
					                </button>
 | 
				
			||||||
                <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
 | 
					                <button @click="updateUser" class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
 | 
				
			||||||
                        Fertig
 | 
					                        Fertig
 | 
				
			||||||
                      </a>
 | 
					                </button>
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					    <style lang="scss">
 | 
				
			||||||
 | 
					        .demo-card-square.mdl-card {
 | 
				
			||||||
 | 
					          width: 320px;
 | 
				
			||||||
 | 
					          height: 320px;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        .demo-card-square > .mdl-card__title {
 | 
				
			||||||
 | 
					          color: #fff;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        .dropbox {
 | 
				
			||||||
 | 
					    outline: 2px dashed grey; /* the dash box */
 | 
				
			||||||
 | 
					    outline-offset: -10px;
 | 
				
			||||||
 | 
					    background: lightcyan;
 | 
				
			||||||
 | 
					    color: dimgray;
 | 
				
			||||||
 | 
					    padding: 10px 10px;
 | 
				
			||||||
 | 
					    min-height: 200px; /* minimum height */
 | 
				
			||||||
 | 
					    position: relative;
 | 
				
			||||||
 | 
					    cursor: pointer;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .input-file {
 | 
				
			||||||
 | 
					    opacity: 0; /* invisible but it's there! */
 | 
				
			||||||
 | 
					    width: 100%;
 | 
				
			||||||
 | 
					    height: 200px;
 | 
				
			||||||
 | 
					    position: absolute;
 | 
				
			||||||
 | 
					    cursor: pointer;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .dropbox:hover {
 | 
				
			||||||
 | 
					    background: lightblue; /* when mouse over to the drop zone, change color */
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .dropbox p {
 | 
				
			||||||
 | 
					    font-size: 1.2em;
 | 
				
			||||||
 | 
					    text-align: center;
 | 
				
			||||||
 | 
					    padding: 50px 0;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					        </style>
 | 
				
			||||||
    <script src="javascripts/user.js"></script>
 | 
					    <script src="javascripts/user.js"></script>
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user