mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-10 08:38:34 -05:00
added FAB to editor
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
<v-textarea
|
<v-textarea
|
||||||
label="Description"
|
label="Description"
|
||||||
v-model="recipe.description"
|
v-model="recipe.description"
|
||||||
|
:rules="[v => v.length <= 512 || '> 512']"
|
||||||
|
counter
|
||||||
clearable
|
clearable
|
||||||
></v-textarea>
|
></v-textarea>
|
||||||
|
|
||||||
@@ -73,8 +75,29 @@
|
|||||||
<step-editor v-model="recipe.steps[index]" :step-index="index"></step-editor>
|
<step-editor v-model="recipe.steps[index]" :step-index="index"></step-editor>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
<v-speed-dial
|
||||||
|
location="top"
|
||||||
|
transition="fade-transition"
|
||||||
|
>
|
||||||
|
<template v-slot:activator="{ props: activatorProps }">
|
||||||
|
<v-fab
|
||||||
|
app
|
||||||
|
v-bind="activatorProps"
|
||||||
|
color="primary"
|
||||||
|
size="large"
|
||||||
|
icon="$save"
|
||||||
|
></v-fab>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<v-btn key="1" icon="$success"></v-btn>
|
||||||
|
<v-btn key="2" icon="$info"></v-btn>
|
||||||
|
<v-btn key="3" icon="$warning"></v-btn>
|
||||||
|
<v-btn key="4" icon="$error"></v-btn>
|
||||||
|
</v-speed-dial>
|
||||||
</v-container>
|
</v-container>
|
||||||
|
|
||||||
|
|
||||||
<v-btn @click="updateRecipe()">Save</v-btn>
|
<v-btn @click="updateRecipe()">Save</v-btn>
|
||||||
<v-btn :to="{name: 'view_recipe', params: {id: recipe_id}}">View</v-btn>
|
<v-btn :to="{name: 'view_recipe', params: {id: recipe_id}}">View</v-btn>
|
||||||
|
|
||||||
@@ -110,7 +133,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const api = new ApiApi()
|
const api = new ApiApi()
|
||||||
api.apiKeywordList({page: 1, pageSize: 100}).then(r => {
|
api.apiKeywordList({page: 1, pageSize: 100}).then(r => {
|
||||||
if(r.results){
|
if (r.results) {
|
||||||
this.keywords = r.results
|
this.keywords = r.results
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -32,7 +32,11 @@ export default createVuetify({
|
|||||||
},
|
},
|
||||||
icons: {
|
icons: {
|
||||||
defaultSet: 'fa',
|
defaultSet: 'fa',
|
||||||
aliases,
|
aliases : {
|
||||||
|
...aliases,
|
||||||
|
save: 'fa-regular fa-floppy-disk',
|
||||||
|
delete: 'fa-regular fa-trash-can',
|
||||||
|
},
|
||||||
sets: {
|
sets: {
|
||||||
fa,
|
fa,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user