6
0
Dimitri Korsch преди 3 години
родител
ревизия
e253024676
променени са 1 файла, в които са добавени 7 реда и са изтрити 2 реда
  1. 7 2
      webui/src/components/projects/settings/general-settings.vue

+ 7 - 2
webui/src/components/projects/settings/general-settings.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="general-settings">
     <text-input placeholder="Project ID"
-                :value="$root.project.identifier"
+                :value="projectId"
                 readonly="readonly">
       Project ID
     </text-input>
@@ -104,6 +104,11 @@ export default {
       // TODO then / error
       this.$root.socket.post(`/projects/${this.projectId}/remove`, {remove: true})
     }
+  },
+  computed: {
+    projectId: function () {
+      return this.$root.project.identifier;
+    }
   }
 }
 </script>
@@ -121,4 +126,4 @@ export default {
   font-size: 80%;
   margin-bottom: 0.1rem;
 }
-</style>
+</style>