This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user