jobdone-shared-files 1.0.8 → 1.0.9

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.
@@ -25,6 +25,7 @@
25
25
  </div>
26
26
  <div class="nav-item navbar-line-item btn nav-link border-0 dropdown"
27
27
  :class="{'active': isActive(navLinkObj.moduleLink)}">
28
+ <!-- NOTE 自己的獨立AP 沒有list,目前因為隕石已被GeneralLink取代 -->
28
29
  <a :href="navLinkObj.url + projectId" class="dropdown-link" v-if="navLinkObj?.moduleLink?.selfIsApp">
29
30
  <span class="material-icons icon-18 me-2">{{ navLinkObj?.moduleLink?.icon }}</span>
30
31
  {{ navLinkObj?.moduleLink?.name }}
@@ -43,7 +44,7 @@
43
44
  </ul>
44
45
  </div>
45
46
  <div class="nav-item navbar-line-item btn nav-link border-0 dropdown"
46
- :class="{'active': isActive(item.clientId)}"
47
+ :class="{'active': isActive(item.id)}"
47
48
  v-for="item in navLinkObj.generalLink">
48
49
  <a :href="item.url + '?projectId=' + projectId" class="dropdown-link">
49
50
  <span class="material-icons icon-18 me-2">{{item.icon}}</span>
@@ -167,12 +168,15 @@
167
168
 
168
169
  const isActive = (target) => {
169
170
  if (target === null) {
171
+ // 專案資訊
170
172
  return target === null && !props.activeClientId;
171
173
  }
172
174
  if (typeof target === 'object') {
175
+ // 功能選單
173
176
  return !!props.activeClientId && (target.clientId === props.activeClientId || target.apps.some(x => x.clientId == props.activeClientId))
174
177
  }
175
178
  if (!!props.activeClientId && target == props.activeClientId) {
179
+ // 功能選單
176
180
  return true;
177
181
  }
178
182
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobdone-shared-files",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Shared JS and SCSS for Jobdone Enterprise.",
5
5
  "main": "index.js",
6
6
  "scripts": {