This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- <span class="v-label v-label--active theme--light">
|
||||
Wiki
|
||||
</span> -->
|
||||
<template v-if="readOnly">
|
||||
<div>
|
||||
<v-btn depressed tile @click="switchView()">
|
||||
@@ -11,10 +8,27 @@
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div>
|
||||
<v-btn depressed tile @click="switchView()">
|
||||
Wiki<v-icon right>{{ switchViewIcon() }}</v-icon></v-btn
|
||||
>
|
||||
<span class="v-label v-label--active theme--light">
|
||||
Wiki
|
||||
</span>
|
||||
<div class="mt-2">
|
||||
<v-btn-toggle v-model="currentView">
|
||||
<v-btn color="white" value="0">
|
||||
<v-icon>fa-eye-slash</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn color="white" value="2">
|
||||
<v-icon>fa-eye</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn color="white" value="1">
|
||||
<v-icon>fa-columns</v-icon>
|
||||
</v-btn>
|
||||
|
||||
<v-btn color="white" value="3">
|
||||
<v-icon>fa-edit</v-icon>
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -66,9 +80,10 @@ const WIKI_VIEW = 2;
|
||||
const DESIGN_VIEW = 3;
|
||||
|
||||
export default {
|
||||
created() {},
|
||||
data() {
|
||||
return {
|
||||
currentView: HIDDEN_VIEW
|
||||
currentView: 0
|
||||
};
|
||||
},
|
||||
props: {
|
||||
|
||||
@@ -47,6 +47,18 @@ import reportSelectorControl from "./components/report-selector-control.vue";
|
||||
import reportViewerControl from "./components/report-viewer-control.vue";
|
||||
import wikiControl from "./components/wiki-control.vue";
|
||||
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
//DEVELOPMENT MODE
|
||||
//THIS SHOULD BE FALSE IN RELEASE
|
||||
//************************************************************
|
||||
const DEV_MODE = true;
|
||||
//************************************************************
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// LIBS AND GLOBAL ITEMS
|
||||
// NOTE: I'm putting them on Window deliberately to be globally available
|
||||
@@ -82,18 +94,6 @@ window.$gz = {
|
||||
// ERROR HANDLING
|
||||
//
|
||||
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
//DEVELOPMENT MODE
|
||||
//THIS SHOULD BE FALSE IN RELEASE
|
||||
//************************************************************
|
||||
const DEV_MODE = true;
|
||||
//************************************************************
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
|
||||
Vue.config.errorHandler = errorHandler.handleVueError;
|
||||
window.onerror = errorHandler.handleGeneralError;
|
||||
//warnings, only occur by default in debug mode not production
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
<v-col cols="12">
|
||||
<gz-wiki
|
||||
v-model="obj.wikiContent"
|
||||
:readOnly="formstate.readOnly"
|
||||
:readOnly="formState.readOnly"
|
||||
:parentVM="this"
|
||||
></gz-wiki
|
||||
></v-col>
|
||||
|
||||
Reference in New Issue
Block a user