Skip to content

Commit

Permalink
fix: mixin.base-activity does not handle header/footer elements (close
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Jun 19, 2024
1 parent beb0ee5 commit f50aa0e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/client/mixins/mixin.base-activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ export function baseActivity (name) {
getAppName () {
return this.$config('appName')
},
configureHeader () {
Layout.setHeader(_.get(this.activityOptions, 'header'), this)
},
clearHeader () {
Layout.setHeader(null)
},
configureFooter () {
Layout.setFooter(_.get(this.activityOptions, 'footer'), this)
},
clearFooter () {
Layout.setFooter(null)
},
getTopPane () {
return Layout.getPane('top')
},
Expand Down Expand Up @@ -174,6 +186,8 @@ export function baseActivity (name) {
Layout.setWindowVisible(result.placement, false)
},
clearActivity () {
this.clearHeader()
this.clearFooter()
this.clearTopPane()
this.clearBottomPane()
this.clearLeftPane()
Expand All @@ -183,6 +197,8 @@ export function baseActivity (name) {
this.clearWindows()
},
configureActivity () {
this.configureHeader()
this.configureFooter()
this.configureTopPane()
this.configureLeftPane()
this.configureBottomPane()
Expand Down

0 comments on commit f50aa0e

Please sign in to comment.