Skip to content

Commit aa0b3a9

Browse files
authored
Merge pull request #55 from GetScatter/master
Sidebar and FIO requests bugfix
2 parents 8b5561a + a7749c2 commit aa0b3a9

6 files changed

Lines changed: 28 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bridge",
3-
"version": "1.0.12",
3+
"version": "1.0.13",
44
"private": true,
55
"scripts": {
66
"build": "npm run check && yarn && cross-env NODE_ENV=production BABEL_ENV=prod vue-cli-service build && npm run zip",

src/components/ManageAccounts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
202202
&:not(.collapsed){
203203
&.mobile {
204-
z-index:9999999999999999;
204+
z-index:9999;
205205
background:white;
206206
width:100%;
207207
}

src/components/TopActions.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
<span v-if="!isSettings">Settings</span>
1616
<span v-if="isSettings">Back</span>
1717
</figure>
18+
<figure v-if="isMobile" @click="toggleCollapsed" class="icon">
19+
<i class="fas fa-user"></i>
20+
</figure>
1821
<!--<figure @click="selectAccount" class="icon"><i class="fal fa-user"></i><span>Accounts</span></figure>-->
1922
<figure v-if="featureFlags.premium" class="icon breaker"></figure>
2023
<figure v-if="featureFlags.premium" @click="transfer" class="icon"><i class="fal fa-money-bill-alt"></i><span>Send Money</span></figure>
@@ -80,7 +83,8 @@
8083
'scatter',
8184
'topActionsColor',
8285
'currencies',
83-
'loadingBalances'
86+
'loadingBalances',
87+
'collapsedSidebar'
8488
]),
8589
currency(){
8690
return PriceService.fiatSymbol()
@@ -128,6 +132,9 @@
128132
PopupService.push(Popups.editNetworkAccount(selectedNetwork));
129133
}));
130134
},
135+
toggleCollapsed(){
136+
this[UIActions.SET_COLLAPSED_SIDEBAR](!this.collapsedSidebar);
137+
},
131138
friends(){
132139
if(!this.hasPremium){
133140
PopupService.push(Popups.goPremium(success => {
@@ -223,7 +230,8 @@
223230
},
224231
225232
...mapActions([
226-
UIActions.SET_THEME
233+
UIActions.SET_THEME,
234+
UIActions.SET_COLLAPSED_SIDEBAR,
227235
])
228236
}
229237
}

src/components/popups/fio/ShowFioRequests.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@
140140
if(this.fioData.length >= 5) break;
141141
const request = requests[i];
142142
143-
const sharedSecret = await window.wallet.createSharedSecret('fio', this.account.publicKey, request.payee_fio_public_key).catch(() => null);
143+
const key = this.state === STATES.RECEIVED ? request.payee_fio_public_key : request.payer_fio_public_key;
144+
const sharedSecret = await window.wallet.createSharedSecret('fio', this.account.publicKey, key).catch(() => null);
144145
if(!sharedSecret) continue;
145146
146147
const content = await plugin.decrypt('new_funds_content', request.content, sharedSecret).catch(err => {

src/views/_ViewBase.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,16 @@
300300
min-height:calc(100vh - #{$mobilenavbarheight});
301301
}
302302
}
303+
304+
.main-panel {
305+
width:calc(100% - #{$accountssidebar} + 7px);
306+
307+
transition:width 0.2s ease;
308+
309+
&.expanded {
310+
width:calc(100% + 7px);
311+
}
312+
}
303313
}
304314
305315

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,10 +1309,10 @@
13091309
web3 "^1.2.0"
13101310
web3-provider-engine "^15.0.4"
13111311

1312-
"@walletpack/fio@^0.0.27":
1313-
version "0.0.27"
1314-
resolved "https://registry.yarnpkg.com/@walletpack/fio/-/fio-0.0.27.tgz#300814243006f7cdea222642d90f0ea7030607ec"
1315-
integrity sha512-ak79iHiYkhpKS5SoxZk3NYUGnedfV5LzpUKN8WS640fWToonQAYA3Dx+7Uxef+hVVmnQAvjuz48w428TU0t3PQ==
1312+
"@walletpack/fio@^0.0.28":
1313+
version "0.0.28"
1314+
resolved "https://registry.yarnpkg.com/@walletpack/fio/-/fio-0.0.28.tgz#551df9216ea362c83200aa5b782db0983ad35dc5"
1315+
integrity sha512-CJkj0Cgrd33kFZbuQd/+2h8tvF/4VwlG6Jo3AWZJ6QLj/j5AuE6KS3bRDZPupJA1sWBKazl5ZMdeUQiCkCfVEg==
13161316
dependencies:
13171317
"@fioprotocol/fiojs" "^1.0.1"
13181318
"@walletpack/core" "^1.0.50"

0 commit comments

Comments
 (0)