Explorar o código

account stuff tweaks

Johann Woelper %!s(int64=5) %!d(string=hai) anos
pai
achega
be82387315
Modificáronse 2 ficheiros con 7 adicións e 5 borrados
  1. 4 1
      webapp/app.js
  2. 3 4
      webapp/index.html

+ 4 - 1
webapp/app.js

@@ -95,7 +95,10 @@ var app = new Vue({
             return q
         },
         add_query: function () {
-            this.$set(this.queries, this.query_url, {});
+
+            
+            this.$set(this.queries, this.query_url, {auctions:{}});
+            // console.log(this.queries);
         },
         delete_query: function (queryname) {
             this.$delete(this.queries, queryname);

+ 3 - 4
webapp/index.html

@@ -43,9 +43,8 @@
       <div id="nav-icon">M</div>
       <input id="nav-toggle" type="checkbox">
       <div id="nav-items">
-        <button @click="search_visible = !search_visible">Sucheinstellungen</button>
-        <button @click="window.location.hash = ''; window.location.reload()">Logout</button>
-
+        <button v-if="account" @click="search_visible = !search_visible">Sucheinstellungen</button>
+        <button v-if="account" @click="window.location.hash = ''; window.location.reload()">Logout</button>
       </div>
 
 
@@ -123,7 +122,7 @@
       </div>
 
 
-      <div class="panel">
+      <div v-if="account" class="panel">
         <h3>
           Deine Suchen:
         </h3>