Skip to content

Commit

Permalink
Merge pull request #55 from GetScatter/master
Browse files Browse the repository at this point in the history
Sidebar and FIO requests bugfix
  • Loading branch information
nsjames authored Sep 29, 2020
2 parents 8b5561a + a7749c2 commit aa0b3a9
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bridge",
"version": "1.0.12",
"version": "1.0.13",
"private": true,
"scripts": {
"build": "npm run check && yarn && cross-env NODE_ENV=production BABEL_ENV=prod vue-cli-service build && npm run zip",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ManageAccounts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
&:not(.collapsed){
&.mobile {
z-index:9999999999999999;
z-index:9999;
background:white;
width:100%;
}
Expand Down
12 changes: 10 additions & 2 deletions src/components/TopActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<span v-if="!isSettings">Settings</span>
<span v-if="isSettings">Back</span>
</figure>
<figure v-if="isMobile" @click="toggleCollapsed" class="icon">
<i class="fas fa-user"></i>
</figure>
<!--<figure @click="selectAccount" class="icon"><i class="fal fa-user"></i><span>Accounts</span></figure>-->
<figure v-if="featureFlags.premium" class="icon breaker"></figure>
<figure v-if="featureFlags.premium" @click="transfer" class="icon"><i class="fal fa-money-bill-alt"></i><span>Send Money</span></figure>
Expand Down Expand Up @@ -80,7 +83,8 @@
'scatter',
'topActionsColor',
'currencies',
'loadingBalances'
'loadingBalances',
'collapsedSidebar'
]),
currency(){
return PriceService.fiatSymbol()
Expand Down Expand Up @@ -128,6 +132,9 @@
PopupService.push(Popups.editNetworkAccount(selectedNetwork));
}));
},
toggleCollapsed(){
this[UIActions.SET_COLLAPSED_SIDEBAR](!this.collapsedSidebar);
},
friends(){
if(!this.hasPremium){
PopupService.push(Popups.goPremium(success => {
Expand Down Expand Up @@ -223,7 +230,8 @@
},
...mapActions([
UIActions.SET_THEME
UIActions.SET_THEME,
UIActions.SET_COLLAPSED_SIDEBAR,
])
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/popups/fio/ShowFioRequests.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@
if(this.fioData.length >= 5) break;
const request = requests[i];
const sharedSecret = await window.wallet.createSharedSecret('fio', this.account.publicKey, request.payee_fio_public_key).catch(() => null);
const key = this.state === STATES.RECEIVED ? request.payee_fio_public_key : request.payer_fio_public_key;
const sharedSecret = await window.wallet.createSharedSecret('fio', this.account.publicKey, key).catch(() => null);
if(!sharedSecret) continue;
const content = await plugin.decrypt('new_funds_content', request.content, sharedSecret).catch(err => {
Expand Down
10 changes: 10 additions & 0 deletions src/views/_ViewBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,16 @@
min-height:calc(100vh - #{$mobilenavbarheight});
}
}
.main-panel {
width:calc(100% - #{$accountssidebar} + 7px);
transition:width 0.2s ease;
&.expanded {
width:calc(100% + 7px);
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1309,10 +1309,10 @@
web3 "^1.2.0"
web3-provider-engine "^15.0.4"

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

0 comments on commit aa0b3a9

Please sign in to comment.