Edit lines bugfix which only shows in vue prod mode

This commit is contained in:
PMKuipers 2023-08-15 15:43:54 +02:00
parent fb3221312d
commit 44b954c47c
5 changed files with 11 additions and 23814 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

11905
amd/build/vue.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1216,7 +1216,7 @@ export default {
* T-STUDYPLAN * T-STUDYPLAN
*/ */
Vue.component('t-studyplan', { Vue.component('t-studyplan', {
props: ['value', 'index'], props: ['value', 'index', ],
data() { data() {
return { return {
config: { config: {
@ -1788,7 +1788,7 @@ export default {
value : { value : {
type: Object, // Studyline type: Object, // Studyline
default: function(){ return {};}, default: function(){ return {};},
} }
}, },
data() { data() {
return { return {
@ -1812,6 +1812,9 @@ export default {
} else { } else {
return false; return false;
} }
},
editable() {
return true;
} }
}, },
methods: { methods: {
@ -1837,10 +1840,10 @@ export default {
</div> </div>
<div class='controlbox'> <div class='controlbox'>
<template v-if='editable || deletable'> <template v-if='editable || deletable'>
<span class='control editable'> <span class='control editable' v-if='editable'>
<a href='#' @click='onEdit'><i class='fa fa-pencil'></i></a> <a href='#' @click='onEdit'><i class='fa fa-pencil'></i></a>
</span> </span>
<span class='control deletable'> <span class='control deletable' v-if='deletable'>
<a v-if='deletable' href='#' @click='onDelete'><i class='text-danger fa fa-trash'></i></a> <a v-if='deletable' href='#' @click='onDelete'><i class='text-danger fa fa-trash'></i></a>
</span> </span>
</template> </template>

File diff suppressed because one or more lines are too long