Skip to content
Snippets Groups Projects
Verified Commit 8cb680ba authored by Mateusz Tyszczak's avatar Mateusz Tyszczak :scroll:
Browse files

Add connect button to the account information card

parent 9273cafe
No related branches found
No related tags found
No related merge requests found
Pipeline #118168 passed
<script setup lang="ts">
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { Skeleton } from '@/components/ui/skeleton';
import { Button } from '@/components/ui/button';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
import { mdiAccountBadgeOutline, mdiOpenInNew } from '@mdi/js';
import { useSettingsStore } from '@/stores/settings.store';
import { computed } from 'vue';
import { useUserStore } from '@/stores/user.store';
import { useWalletStore } from '@/stores/wallet.store';
const settingsStore = useSettingsStore();
const hasUser = computed(() => settingsStore.settings.account !== undefined);
const walletStore = useWalletStore();
const userStore = useUserStore();
</script>
......@@ -51,6 +55,11 @@ const userStore = useUserStore();
</div>
</div>
</div>
<div v-else>
<Button @click="walletStore.openWalletSelectModal()" class="w-full font-bold">
Connect your wallet now
</Button>
</div>
</CardContent>
</Card>
</template>
\ No newline at end of file
......@@ -99,7 +99,7 @@ const updateAuthority = async() => {
<Input id="updateAuthority_ownerKey" placeholder="Nothing to add" v-model="ownerKey" class="my-2" />
</div>
<Button class="my-2" @click="updateAuthority" :loading="isLoading">Update Authority</Button>
<p>Note: By clicking the above button, the transaction will be created, signed, and broadcasted immediately to the mainnet chain</p>
<p class="text-sm">Note: By clicking the above button, the transaction will be created, signed, and broadcasted immediately to the mainnet chain</p>
</div>
</CardContent>
</Card>
......
......@@ -182,7 +182,7 @@ const createAccount = async() => {
</div>
</RadioGroup>
<Button @click="createAccount" :loading="isLoading">Create account</Button>
<p>Note: By clicking the above button, the transaction will be created, signed, and broadcasted immediately to the mainnet chain</p>
<p class="text-sm">Note: By clicking the above button, the transaction will be created, signed, and broadcasted immediately to the mainnet chain</p>
</div>
</CardContent>
</Card>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment