6
0
Эх сурвалжийг харах

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 3 жил өмнө
parent
commit
1209e694c3

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

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