Project wireup (#80)

* Remove unneeded style

* Base modpack wire up

* Run lint

* Thats not supposed to be there

* Remove errant class

* Fix safety

* Username => ID

* fix id missing

* Fix bug with clicking

* remove unnecessary

* Update Versions.vue

* Addressed changes

* Lintttt
This commit is contained in:
Adrian O.V
2023-04-12 22:29:40 -04:00
committed by GitHub
parent 06ace174e6
commit bb126c0545
9 changed files with 111 additions and 52 deletions

View File

@@ -3,7 +3,7 @@
ref="avatar"
class="button-base"
size="sm"
:src="selectedAccount.profile_picture"
:src="selectedAccount?.profile_picture ?? ''"
@click="toggle()"
/>
<transition name="fade">
@@ -62,7 +62,7 @@ const appendProfiles = (accounts) => {
return accounts.map((account) => {
return {
...account,
profile_picture: `https://crafthead.net/helm/${account.username}/128`,
profile_picture: `https://crafthead.net/helm/${account.id}/128`,
}
})
}
@@ -74,9 +74,7 @@ const displayAccounts = computed(() =>
)
const selectedAccount = ref(
await users().then((accounts) =>
accounts.find((account) => account.id === settings.value.default_user)
)
accounts.value.find((account) => account.id === settings.value.default_user)
)
const refreshValues = async () => {