Add headlines and actions:prepend portal to drawer

This commit is contained in:
rijkvanzanten
2021-04-22 17:46:06 -04:00
parent 4dcf35d7de
commit 0eb5557bf6
2 changed files with 12 additions and 0 deletions

View File

@@ -1,5 +1,11 @@
<template>
<v-drawer v-model="_active" :title="$t('select_item')" @cancel="cancel">
<template #subtitle>
<v-breadcrumb :items="[{ name: collectionInfo.name, disabled: true }]" />
</template>
<template #actions:prepend><portal-target name="actions:prepend" /></template>
<template #actions>
<search-input v-model="searchQuery" />

View File

@@ -7,6 +7,11 @@
<render-template :collection="templateCollection.collection" :item="templateData" :template="template" />
</h1>
</template>
<template #subtitle>
<v-breadcrumb :items="[{ name: collectionInfo.name, disabled: true }]" />
</template>
<template #actions>
<v-button @click="save" icon rounded v-tooltip.bottom="$t('save')">
<v-icon name="check" />
@@ -176,6 +181,7 @@ export default defineComponent({
templatePrimaryKey,
templateData,
templateDataLoading,
collectionInfo,
};
function useActiveState() {