Skip to content

Commit

Permalink
feat: No addictional space bottom when hidden app - MEED-2924-Meeds-i…
Browse files Browse the repository at this point in the history
…o/MIPs#103 (#1349)

Prior to this change when application is hidden, an extra padding bottom is visible This change allows to hide the app portlet parent when it is hidden.

(cherry picked from commit f675c89)
  • Loading branch information
SaraBoutej authored and exo-swf committed Nov 22, 2023
1 parent ff2106f commit fa02c76
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,19 @@ export default {
spaceId: eXo.env.portal.spaceId,
hidden: false,
}),
watch: {
hidden() {
if (this.hidden) {
this.$el.closest('.PORTLET-FRAGMENT').classList.add('hidden');
} else {
this.$el.closest('.PORTLET-FRAGMENT').classList.remove('hidden');
}
}
},
mounted() {
if (this.hidden) {
this.$el.closest('.PORTLET-FRAGMENT').classList.add('hidden');
}
}
};
</script>

0 comments on commit fa02c76

Please sign in to comment.