Explorar o código

Merge branch '139-unique-project-id-in-settings' into 'master'

Resolve "unique project id in settings"

Closes #139

See merge request troebs/pycs!127
Eric Tröbs %!s(int64=3) %!d(string=hai) anos
pai
achega
1209e694c3
Modificáronse 1 ficheiros con 15 adicións e 3 borrados
  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: '',