mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix condition to show comment in on-the-fly
This commit is contained in:
parent
e6ea2674c2
commit
11d4450244
@ -103,12 +103,10 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
hasResourceComment() {
|
hasResourceComment() {
|
||||||
//console.log('hasResourceComment', this.parent);
|
//console.log('hasResourceComment', this.parent);
|
||||||
if (typeof this.parent === 'undefined' || this.parent === null) {
|
return (typeof this.parent !== 'undefined' && this.parent !== null)
|
||||||
return false;
|
&& this.action === 'show'
|
||||||
}
|
|
||||||
return this.action === 'show'
|
|
||||||
&& this.parent.type === 'accompanying_period_resource'
|
&& this.parent.type === 'accompanying_period_resource'
|
||||||
&& (this.parent.comment !== null || this.parent.comment !== '')
|
&& (this.parent.comment !== null && this.parent.comment !== '')
|
||||||
;
|
;
|
||||||
},
|
},
|
||||||
classAction() {
|
classAction() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user