This commit is contained in:
2020-04-20 19:21:18 +00:00
parent 397abc4220
commit a50a465db0
6 changed files with 29 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div>
<template v-if="readOnly">
<template v-if="readonly">
<div>
<v-btn depressed tile @click="switchView()">
Wiki<v-icon right>{{ switchViewIcon() }}</v-icon></v-btn
@@ -387,7 +387,7 @@ export default {
},
props: {
value: String,
readOnly: Boolean,
readonly: Boolean,
attachments: Array
},
watch: {
@@ -528,7 +528,7 @@ export default {
//return the icon that indicates what it will change to if you click it
//mirror of switchview below
if (this.readOnly) {
if (this.readonly) {
if (this.currentView == this.view.HIDDEN_VIEW) {
return "fa-eye";
} else {
@@ -562,7 +562,7 @@ export default {
},
switchView() {
//if user can't edit then cycle between hidden and wiki view
if (this.readOnly) {
if (this.readonly) {
if (this.currentView == this.view.HIDDEN_VIEW) {
this.currentView = this.view.WIKI_VIEW;
} else {