Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed Oct 31, 2023
1 parent f693e8a commit e13c7cc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const router = useRouter();
const canaryHost = computed(() => appStore.config.network === 'canary');
(() => {
if (window.bootstrap.name) {
if (window.bootstrap?.name) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/SideNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const navigations = computed(() => useAppStore().navigations);
const canaryHost = computed(() => useAppStore().config.network === 'canary');
const pageTitle = () => {
if (window.bootstrap.name) {
if (window.bootstrap?.name) {
return window.bootstrap.name;
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/UserNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const navigations = computed(() => appStore.navigations);
const canaryHost = computed(() => useAppStore().config.network === 'canary');
const pageTitle = () => {
if (window.bootstrap.name) {
if (window.bootstrap?.name) {
return window.bootstrap.name;
}
Expand Down
2 changes: 2 additions & 0 deletions resources/js/components/WalletConnectButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ const walletName = computed(() => {
} else if (connectionStore.provider === 'polkadot.js') {
return 'Polkadot.JS';
}
return '';
});
const walletSession = computed(() => connectionStore.wallet);
Expand Down
8 changes: 8 additions & 0 deletions resources/js/components/pages/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,12 @@ watch(
}
}
);
(() => {
setTimeout(() => {
if (loading.value) {
loading.value = false;
}
}, 2000);
})();
</script>
2 changes: 1 addition & 1 deletion resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script>
global = globalThis
window.__dynamic_base__ = '/vendor/platform-ui/build';
window.bootstrap = { name: "{{ env('APP_NAME') }}", network: "{{ env('NETWORK') }}" url: window.location.origin, daemon: "{{ Enjin\Platform\Support\Account::daemon()['public_key'] }}" }
window.bootstrap = { name: "{{ env('APP_NAME') }}", network: "{{ env('NETWORK') }}" , url: window.location.origin, daemon: "{{ Enjin\Platform\Support\Account::daemon()['public_key'] }}" }
</script>

@vite('resources/js/app.ts', 'vendor/platform-ui/build')
Expand Down

0 comments on commit e13c7cc

Please sign in to comment.