jobdone-shared-files 1.0.38 → 1.0.40

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.
@@ -2,7 +2,7 @@
2
2
  <aside id="col-aside" class="border-end border-white overflow-visible">
3
3
  <div class="bg-body">
4
4
  <div class="d-flex border-bottom">
5
- <nav-button :module-info="moduleInfoData" :click-to-reload="true"></nav-button>
5
+ <nav-button :module-info="moduleInfoData"></nav-button>
6
6
  <div class="logo-content flex-grow-1">
7
7
  <a :href="indexLink">
8
8
  <img src="./logo-with-text.svg" alt="Jobdone Enterprise Logo">
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="dropdown dropdown-main-menu border-end">
3
3
  <input type="checkbox" id="main-menu-toggle">
4
- <label for="main-menu-toggle" class="btn btn-link btn-link-light-bg btn-square" title="開啟選單" @click="reload()">
4
+ <label for="main-menu-toggle" class="btn btn-link btn-link-light-bg btn-square" title="開啟選單" @click="checkReload()">
5
5
  <span class="material-icons">apps</span>
6
6
  </label>
7
7
  <label for="main-menu-toggle" class="menu-backdrop"></label>
@@ -115,12 +115,6 @@
115
115
  required: false,
116
116
  default: "/Logout"
117
117
  },
118
-
119
- clickToReload: {
120
- type: Boolean,
121
- required: false,
122
- default: false
123
- }
124
118
  },
125
119
  setup(props) {
126
120
  let result = ref({
@@ -141,8 +135,8 @@
141
135
  }
142
136
  }
143
137
 
144
- function reload() {
145
- if (props.clickToReload) {
138
+ function checkReload() {
139
+ if (!result.value.moduleInfo.name) {
146
140
  getModuleInfo(props.moduleInfo);
147
141
  }
148
142
  }
@@ -161,7 +155,7 @@
161
155
  return {
162
156
  result,
163
157
  getModuleInfo,
164
- reload,
158
+ checkReload,
165
159
  finalRootDomain
166
160
  };
167
161
  },
package/README.md CHANGED
@@ -67,7 +67,6 @@ import OOXX from '../../node_modules/jobdone-shared-files/OOXX.vue';
67
67
  | `module-info` | `String`, `Object` | 可接受 API URL 或物件,API 僅支援 GET 請求,結構應為 `{ moduleInfo: { name: "", iconName: "" }, generalLinks: [], isPersonal: true, isPaymentAdmin: false }` | 是 |
68
68
  | `index-link` | `String` | 模組的首頁,預設為 `/Index`,,一般來說是底層的 Index | 否 |
69
69
  | `logout-link` | `String` | 登出連結,預設為 `/Logout` | 否 |
70
- | `click-to-reload` | `Boolean` | 點擊按鈕時是否需要重新取得資料,預設為 `false` | 否 |
71
70
 
72
71
 
73
72
  ### .
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobdone-shared-files",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "Shared JS and SCSS for Jobdone Enterprise.",
5
5
  "main": "index.js",
6
6
  "scripts": {