diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 0a6d70d1..a2bde366 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -1,6 +1,6 @@ # CLIENT TODO - +rishi gorang sunto ************************************************************************************************************************************************************************** CURRENT ROADMAP diff --git a/ayanova/src/components/wiki-control.vue b/ayanova/src/components/wiki-control.vue index 450417c3..b767f1a6 100644 --- a/ayanova/src/components/wiki-control.vue +++ b/ayanova/src/components/wiki-control.vue @@ -61,7 +61,11 @@ fa-code fa-square-full - + @@ -83,6 +87,7 @@ export default { created() {}, data() { return { + localVal: this.value, currentView: 0 }; }, @@ -90,7 +95,16 @@ export default { value: String, readOnly: Boolean }, + watch: { + value(value) { + this.localVal = value; + } + }, methods: { + handleInput(val) { + this.$emit("input", val); + this.localVal = val; + }, switchViewIcon() { //return the icon that indicates what it will change to if you click it //mirror of switchview below @@ -153,7 +167,7 @@ export default { return this.wikiVisible ? "fa-eye-slash" : "fa-eye"; }, compiledOutput() { - return DOMPurify.sanitize(marked(this.value)); + return DOMPurify.sanitize(marked(this.localVal)); } } }; @@ -161,12 +175,6 @@ export default { /** todo: -try to make view without using tab control - - user picks view in toolbar from choices of split, design or result view and toggles when they select these choices - -Add "View" translation key -Show/hide/edit control -eyeball icon like password reveal flag as dirty when edited if can't edit and no content then don't show at all