@jx3box/jx3box-common-ui 5.5.22 → 5.5.23

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.5.22",
3
+ "version": "5.5.23",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,8 +12,9 @@
12
12
  src="../assets/img/bread/menu.svg"
13
13
  />
14
14
  </div>
15
- <a class="u-channel" :href="root" :class="{on:withoutLeft}">
15
+ <a class="u-channel" :href="rootLink" :class="{on:withoutLeft}">
16
16
  <i class="u-channel-logo">
17
+ <img :src="getAppIcon(slug)" v-if="!$slots.logo"/>
17
18
  <slot name="logo"></slot>
18
19
  </i>
19
20
  <span class="u-title">{{ name }}</span>
@@ -50,7 +51,7 @@
50
51
 
51
52
  <script>
52
53
  import _ from "lodash";
53
- import { publishLink } from "@jx3box/jx3box-common/js/utils";
54
+ import { publishLink,getAppIcon } from "@jx3box/jx3box-common/js/utils";
54
55
  import { __Links, feedback } from "@jx3box/jx3box-common/data/jx3box.json";
55
56
  import User from "@jx3box/jx3box-common/js/user";
56
57
  import Admin from "./bread/Admin";
@@ -87,13 +88,18 @@ export default {
87
88
  isApp: isApp(),
88
89
  };
89
90
  },
90
- computed: {},
91
+ computed: {
92
+ rootLink : function (){
93
+ return this.root || `/${this.slug}`
94
+ }
95
+ },
91
96
  methods: {
92
97
  toggleLeftSide: function () {
93
98
  let status = !this.isOpen;
94
99
  Bus.$emit("toggleLeftSide", status);
95
100
  },
96
101
  publishLink,
102
+ getAppIcon,
97
103
  },
98
104
  mounted: function () {
99
105
  Bus.$on("toggleLeftSide", (data) => {