Skip to content

Commit

Permalink
fixup! Add equipment types management
Browse files Browse the repository at this point in the history
  • Loading branch information
Perdolique committed Sep 25, 2024
1 parent aff0b8b commit 2cb7c85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/dialogs/InputDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
readonly maxlength: number
}
type Emits = (event: 'submit', typeName: string) => void
type Emits = (event: 'submit', input: string) => void
defineProps<Props>()
Expand Down
11 changes: 11 additions & 0 deletions app/pages/manager/equipment/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
icon="tabler:link"
text="Manage"
>
<OptionButton
icon="tabler:plus"
@click="handleAddItemClick"
>
Add item
</OptionButton>

<OptionButton
icon="tabler:filters"
@click="handleTypesClick"
Expand Down Expand Up @@ -63,6 +70,10 @@
}
})
function handleAddItemClick() {
router.push('/manager/equipment/add')
}
function handleOldFormClick() {
router.push('/manager/equipment/_add')
}
Expand Down

0 comments on commit 2cb7c85

Please sign in to comment.