changeset 86:51b08038ff56

fix in the management of images in the dashboard
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 Jul 2026 13:15:12 +0200
parents 6ac5d5c49a26
children e566ebeae426
files WebApplication/dashboard.html
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/WebApplication/dashboard.html	Thu Jul 30 12:50:37 2026 +0200
+++ b/WebApplication/dashboard.html	Thu Jul 30 13:15:12 2026 +0200
@@ -258,10 +258,12 @@
                               <p class="card-text">
                                 <small v-if="resource.projects.length == 0" class="text-body-secondary template-dicom-name">No associated project</small>
                                 <span v-for="project in resource.projects" class="badge rounded-pill bg-primary fs-6 me-1 mb-1">
-                                  {{projectsIndex[project].name}}
-                                  <button class="btn btn-xs border-0 p-0" v-if="editImagesSwitch">
-                                    <i class="fa fa-times" @click="unlinkResource(resource, projectsIndex[project].id)"></i>
-                                  </button>
+                                  <span v-if="project in projectsIndex">
+                                    {{projectsIndex[project].name}}
+                                    <button class="btn btn-xs border-0 p-0" v-if="editImagesSwitch">
+                                      <i class="fa fa-times" @click="unlinkResource(resource, projectsIndex[project].id)"></i>
+                                    </button>
+                                  </span>
                                 </span>
                                 <button class="btn btn-sm btn-success ms-2" @click="linkImageWithProject(resource)"
                                         v-if="editImagesSwitch"