mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
docs: document correct modal usage
This commit is contained in:
parent
fe3638548d
commit
c437bd9528
1 changed files with 7 additions and 0 deletions
|
|
@ -139,6 +139,13 @@ OpenAPI documentation available at `docs/openapi.json`
|
|||
- Sequelize models for database operations
|
||||
- No comments in code unless explicitly requested
|
||||
|
||||
### UI Components & Modals
|
||||
|
||||
- **Modals**: Do **NOT** use `<ui-modal>`. The correct component for creating modals in this project is `<modals-modal>`.
|
||||
- When creating a new modal, it must be imported/registered in `client/layouts/default.vue` (e.g., `<modals-my-new-modal />`).
|
||||
- The modal title should be placed inside a `<template #outer>` slot, following the design pattern of other modals.
|
||||
- State for whether the modal is open or closed should be managed in `client/store/globals.js` and toggled via a Vuex mutation.
|
||||
|
||||
## Database Migrations
|
||||
|
||||
Located in `server/migrations/`. Key migrations include:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue