Commit 55d377cb authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

déplacement liste des projets dans un slot du collectionsTree

parent 6e1d4dae
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
<template>
  <v-card flat>
    <v-toolbar :elevation="0" dark class="rounded-0">
      <v-toolbar-title>
    <v-toolbar :elevation="0" dark class="rounded-0 ma-0 pa-0">
      <v-toolbar-title class="d-flex">
        <v-btn text @click="loadHome()">
          <v-icon>
            mdi-home
          </v-icon>
        </v-btn>
        <slot name="toolbar"/>
      </v-toolbar-title>
    </v-toolbar>
    <v-treeview
+13 −16
Original line number Diff line number Diff line
@@ -4,7 +4,18 @@
           class="pa-0 ma-0 jama-tree-drawer-cols"
           v-if="currentCollection && treeDrawer"
    >
      <collections-tree @tree-collection-selected="loadCollectionById"/>
      <collections-tree @tree-collection-selected="loadCollectionById">
        <template v-slot:toolbar v-if="currentProjectId && projects.length > 1">
              <v-select
                  @change="setProject"
                  :value="currentProjectId"
                  class="d-inline"
                  hide-details
                  :items="projects"
                  item-text="project.label"
                  item-value="project.id"></v-select>
        </template>
      </collections-tree>
    </v-col>


@@ -28,21 +39,7 @@
              <span class="subtitle-1 jama-app-subtitle">{{ appSubtitle }}</span>
            </template>
          </h2>
          <template v-if="currentProjectId && projects.length > 1">
            <div class="d-flex align-center justify-center flex-grow-1">
              <v-col cols="8" sm="6">
                <v-select
                    @change="setProject"
                    :value="currentProjectId"
                    class="d-inline"
                    :items="projects"
                    item-text="project.label"
                    item-value="project.id"></v-select>
              </v-col>

            </div>
          </template>
          <v-spacer v-else></v-spacer>
          <v-spacer></v-spacer>
          <jama-modes-bar v-if="currentProjectId"
                          @toggle-meta-mode="toggleMetaMode"
                          :plugins="plugins"></jama-modes-bar>