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,13 +103,11 @@ export default {
|
||||
computed: {
|
||||
hasResourceComment() {
|
||||
//console.log('hasResourceComment', this.parent);
|
||||
if (typeof this.parent === 'undefined' || this.parent === null) {
|
||||
return false;
|
||||
}
|
||||
return this.action === 'show'
|
||||
return (typeof this.parent !== 'undefined' && this.parent !== null)
|
||||
&& this.action === 'show'
|
||||
&& this.parent.type === 'accompanying_period_resource'
|
||||
&& (this.parent.comment !== null || this.parent.comment !== '')
|
||||
;
|
||||
&& (this.parent.comment !== null && this.parent.comment !== '')
|
||||
;
|
||||
},
|
||||
classAction() {
|
||||
switch (this.action) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user