bfg-common 1.4.524 → 1.4.526

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@
21
21
  @click="emits('toggle-main-menu')"
22
22
  >
23
23
  <atoms-the-icon
24
- v-if="!props.isShowMainMenu"
24
+ v-if="mainMenuTriggerStatus"
25
25
  class="menu-icon"
26
26
  name="menu"
27
27
  />
@@ -31,7 +31,7 @@
31
31
  </template>
32
32
  <template #content>
33
33
  <span class="header-tooltip-text">
34
- <template v-if="!props.isShowMainMenu">{{
34
+ <template v-if="mainMenuTriggerStatus">{{
35
35
  localization.common.openMenu
36
36
  }}</template>
37
37
  <template v-else>{{ localization.common.closeMenu }}</template>
@@ -177,6 +177,12 @@ const emits = defineEmits<{
177
177
  }>()
178
178
 
179
179
  const localization = computed<UI_I_Localization>(() => useLocal())
180
+
181
+ const {$store}: any = useNuxtApp()
182
+
183
+ const isMenuPined = computed(() => $store.getters['main/getIsMenuPined'])
184
+
185
+ const mainMenuTriggerStatus = computed<boolean>(() => !props.isShowMainMenu || isMenuPined.value)
180
186
  </script>
181
187
 
182
188
  <style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.524",
4
+ "version": "1.4.526",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",