btc-wallet: update for new settings

This commit is contained in:
Liam Fitzgerald 2021-09-13 11:36:17 +10:00
parent 6b5942b59a
commit 61ed89c708
4 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,7 @@
<body>
<div id="root"></div>
<div id="portal-root"></div>
<script src="/apps/btc/desk.js"></script>
<script src="/apps/bitcoin/desk.js"></script>
<script src="/session.js"></script>
</body>
</html>

View File

@ -30,6 +30,7 @@ export default class CurrencyPicker extends Component {
}
let setCurrency = {
"put-entry": {
desk: window.desk,
value: newCurrency,
"entry-key": "currency",
"bucket-key": "btc-wallet",

View File

@ -24,6 +24,7 @@ export default class Warning extends Component {
store.handleEvent({ data: { bucket: { warning: false}}});
let removeWarning = {
"put-entry": {
desk: window.desk,
value: false,
"entry-key": "warning",
"bucket-key": "btc-wallet",

View File

@ -19,9 +19,8 @@ export class Subscription {
}
initializeSettings() {
return;
let app = 'settings-store';
let path = '/bucket/btc-wallet';
let path = `/bucket/${window.desk}/btc-wallet`;
fetch(`/~/scry/${app}${path}.json`).then(res => res.json())
.then(n => {