Skip to content

Commit c3046b1

Browse files
committed
fixed sync membership & add membership menu
1 parent 9974a30 commit c3046b1

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

docs/versions/CHANGELOG_FOX.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
# Firefox
22

3-
## v0.8.7 (**self signed**)
3+
## v0.8.9 (**self signed**)
4+
5+
> 12-25
6+
7+
- [x] Add membership view page menu.
8+
- [x] fixed Create Wallet or Import Wallet ,Basic member information is not synchronized.
9+
- [x] Add help Guide link
10+
11+
## v0.8.5 (**self signed**)
412

513
> 12-23
614
715
- [x] Sync website pass items from block chain
816
- [x] Sync mobile pass items from block chain
9-
- [x] Add membership view page menu.
1017
- [x] fixed sdk parse empty array.
11-
- [x] fixed Create Wallet or Import Wallet ,Basic member information is not synchronized.
1218

1319
## v0.8.0 (**self signed**)
1420

src/popup/views/Profile/Index.vue

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<v-spacer></v-spacer>
2727
</v-list-item-title>
2828
<v-list-item-icon>
29-
<v-btn icon small @click="goPageHandle">
29+
<v-btn icon small @click="goPageHandle('helpDuide')">
3030
<v-icon>
3131
{{ icons.ARROW_RIGHT_MDI }}
3232
</v-icon>
@@ -79,7 +79,8 @@ import SubnavBar from '@/popup/widgets/SubnavBar.vue';
7979
8080
import { mapGetters } from 'vuex';
8181
82-
import { blockexplorerUrl } from '@/ui/utils';
82+
import { blockexplorerUrl, EXTERNAL_PAGES } from '@/ui/utils';
83+
import extension from '@lib/extensionizer';
8384
8485
export default {
8586
name: 'ProfileIndex',
@@ -109,7 +110,20 @@ export default {
109110
active: true,
110111
});
111112
},
112-
goPageHandle() {},
113+
goPageHandle(externalKey) {
114+
const url = EXTERNAL_PAGES[externalKey];
115+
if (url) {
116+
extension.tabs.query({ currentWindow: true }, function (tabs) {
117+
const idx = tabs.findIndex((tab) => tab.url == url);
118+
console.log(tabs, idx);
119+
if (idx < 0) {
120+
extension.tabs.create({ url, active: true });
121+
} else {
122+
extension.tabs.update(idx, { active: true, highlighted: true });
123+
}
124+
});
125+
}
126+
},
113127
},
114128
};
115129
</script>

src/ui/utils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const EXTERNAL_PAGES = {
2+
helpDuide: 'https://lanui.github.io/BPassword/#/zh_cn/user_guide',
3+
};
4+
15
export const compressAddress = (address) => {
26
if (address === undefined) return '';
37
if (typeof address === 'object' || typeof address === 'function')

0 commit comments

Comments
 (0)