Skip to content
Snippets Groups Projects
Commit e73f2d90 authored by Adam Procter's avatar Adam Procter
Browse files

added support for legacy readmode

added in legacy readmode for other components for now as I need to rewrite each
parent 7c57e509
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -122,11 +122,11 @@ export default { ...@@ -122,11 +122,11 @@ export default {
if (this.localreadmode == true) { if (this.localreadmode == true) {
readmode = false readmode = false
this.$store.dispatch('readFlag', { e, readmode }) this.$store.dispatch('legacyreadFlag', { e, readmode })
this.mode = 'Read' this.mode = 'Read'
} else { } else {
readmode = true readmode = true
this.$store.dispatch('readFlag', { e, readmode }) this.$store.dispatch('legacyreadFlag', { e, readmode })
this.mode = 'Edit' this.mode = 'Edit'
} }
}, },
......
...@@ -94,7 +94,6 @@ export default { ...@@ -94,7 +94,6 @@ export default {
}, },
deleteFlag(e) { deleteFlag(e) {
//e = this.nodeid
if (confirm('Confirm discard?')) { if (confirm('Confirm discard?')) {
this.$store.dispatch('deleteFlag', { e }) this.$store.dispatch('deleteFlag', { e })
} else { } else {
...@@ -143,7 +142,6 @@ textarea { ...@@ -143,7 +142,6 @@ textarea {
font-family: 'Inter var', Helvetica, sans-serif; font-family: 'Inter var', Helvetica, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
border: none; border: none;
outline: none; outline: none;
background-color: rgb(187, 227, 255); background-color: rgb(187, 227, 255);
......
...@@ -392,11 +392,11 @@ export default { ...@@ -392,11 +392,11 @@ export default {
if (this.localreadmode == true) { if (this.localreadmode == true) {
readmode = false readmode = false
this.$store.dispatch('readFlag', { e, readmode }) this.$store.dispatch('legacyreadFlag', { e, readmode })
this.mode = 'Read' this.mode = 'Read'
} else { } else {
readmode = true readmode = true
this.$store.dispatch('readFlag', { e, readmode }) this.$store.dispatch('legacyreadFlag', { e, readmode })
this.mode = 'Edit' this.mode = 'Edit'
} }
}, },
......
...@@ -750,6 +750,11 @@ const store = new Vuex.Store({ ...@@ -750,6 +750,11 @@ const store = new Vuex.Store({
commit('UPDATE_CONNECT_TWO', tonode, xposend, yposend) commit('UPDATE_CONNECT_TWO', tonode, xposend, yposend)
}, },
legacyreadFlag: ({ commit }, e) => {
// var text = e.target.value
commit('LEGACY_READ_FLAG', e)
},
readFlag: ({ commit }, e) => { readFlag: ({ commit }, e) => {
// var text = e.target.value // var text = e.target.value
commit('READ_FLAG', e) commit('READ_FLAG', e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment