Eric Tröbs 3 年之前
父節點
當前提交
1575c93ee5
共有 1 個文件被更改,包括 15 次插入3 次删除
  1. 15 3
      webui/src/components/projects/settings/general-settings.vue

+ 15 - 3
webui/src/components/projects/settings/general-settings.vue

@@ -1,11 +1,23 @@
 <template>
   <div class="general-settings">
     <text-input placeholder="Project ID"
-                :value="projectId"
+                :value="$root.project.identifier"
                 readonly="readonly">
       Project ID
     </text-input>
 
+    <text-input placeholder="Project Root"
+                :value="$root.project.root_folder"
+                readonly="readonly">
+      Project Root
+    </text-input>
+
+    <text-input placeholder="Data Root"
+                :value="$root.project.data_folder"
+                readonly="readonly">
+      Data Root
+    </text-input>
+
     <text-input placeholder="Name"
                 :value="name"
                 @change="sendName"
@@ -49,13 +61,13 @@ export default {
   name: "general-settings",
   components: {ButtonInput, ConfirmedButtonInput, TextareaInput, TextInput},
   created: function () {
-    this.projectId = this.$root.project.identifier;
     this.name = this.$root.project.name;
     this.description = this.$root.project.description;
+
+    console.log(this.$root.project);
   },
   data: function () {
     return {
-      projectId: '',
       name: '',
       nameError: false,
       description: '',