From f50aa0e2afc02d06959f0d8e8a440c7d7b0fabd9 Mon Sep 17 00:00:00 2001 From: cnouguier Date: Wed, 19 Jun 2024 16:08:10 +0200 Subject: [PATCH] fix: mixin.base-activity does not handle header/footer elements (close #883) --- core/client/mixins/mixin.base-activity.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/core/client/mixins/mixin.base-activity.js b/core/client/mixins/mixin.base-activity.js index 65f7dc540..73033273f 100644 --- a/core/client/mixins/mixin.base-activity.js +++ b/core/client/mixins/mixin.base-activity.js @@ -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') }, @@ -174,6 +186,8 @@ export function baseActivity (name) { Layout.setWindowVisible(result.placement, false) }, clearActivity () { + this.clearHeader() + this.clearFooter() this.clearTopPane() this.clearBottomPane() this.clearLeftPane() @@ -183,6 +197,8 @@ export function baseActivity (name) { this.clearWindows() }, configureActivity () { + this.configureHeader() + this.configureFooter() this.configureTopPane() this.configureLeftPane() this.configureBottomPane()