Skip to content

Commit

Permalink
Update Dashboard.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Oct 17, 2024
1 parent 72fee61 commit fdc1746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { GetUserPackages } from '@backend/thunderstore/API'
import { GetPackagesByUser } from '@backend/thunderstore/API'
import TabView from 'primevue/tabview'
import TabPanel from 'primevue/tabpanel'
Expand All @@ -19,13 +19,13 @@ const data: PackageInfo = reactive({
name: ""
})
async function PackagesByUser() {
async function getPackages() {
if (data.name == "") {
data.resultText = t('search-packages.empty-input')
return
}
const pkgs = await GetUserPackages(["lethal-company"], data.name)
const pkgs = await GetPackagesByUser(["lethal-company"], data.name)
data.resultText = pkgs
}
</script>
Expand All @@ -42,7 +42,7 @@ async function PackagesByUser() {
<InputText id="name" v-model="data.name" autocomplete="off"/>
<!-- <label for="name">Owner</label> -->

<Button class="search-btn" severity="help" outlined icon="pi pi-search" @click="PackagesByUser"/>
<Button class="search-btn" severity="help" outlined icon="pi pi-search" @click="getPackages"/>
</FloatLabel>
</div>

Expand Down

0 comments on commit fdc1746

Please sign in to comment.