瀏覽代碼

some minor WebUI fixes

Dimitri Korsch 3 年之前
父節點
當前提交
106ba4785d

+ 2 - 2
webui/src/components/media/cropped-image.vue

@@ -38,11 +38,11 @@ export default {
     label: function () {
       if (!this.box)
         return false;
-      if (this.box.label == null)
+      if (this.box.label_id == null)
         return 'Unknown'
 
       for (let label of this.labels)
-        if (label.identifier === this.box.label)
+        if (label.identifier === this.box.label_id)
           return label.name;
 
       return 'Not found';

+ 1 - 1
webui/src/components/projects/project-open-window.vue

@@ -20,7 +20,7 @@
           <div class="description">{{ project.description }}</div>
 
           <div>
-            {{ datetime(project.created) }}
+            {{ project.created }}
           </div>
         </div>