This commit is contained in:
2020-04-16 20:35:43 +00:00
parent 1866839dc4
commit c4e634e1e4

View File

@@ -10,7 +10,14 @@
</div> </div>
<v-sheet v-if="wikiVisible" elevation="2" class="aywiki pa-2 pa-sm-6 mt-2"> <v-sheet v-if="wikiVisible" elevation="2" class="aywiki pa-2 pa-sm-6 mt-2">
<v-btn x-large icon v-if="canEdit" text @click="editMode = !editMode"> <v-btn
:color="!!editMode ? 'secondary' : false"
x-large
icon
v-if="canEdit"
text
@click="editMode = !editMode"
>
<v-icon>fa-edit</v-icon></v-btn <v-icon>fa-edit</v-icon></v-btn
> >
<div v-if="!editMode" v-html="compiledOutput()"></div> <div v-if="!editMode" v-html="compiledOutput()"></div>
@@ -50,7 +57,7 @@ todo:
Show/hide/edit control Show/hide/edit control
eyeball icon like password reveal eyeball icon like password reveal
flag as dirty when edited
if can't edit and no content then don't show at all if can't edit and no content then don't show at all
- does it need to have a column wrapper then and remove it from the parent form? - does it need to have a column wrapper then and remove it from the parent form?