Enhance CreateEventDialog with dynamic currency selection and improved validation

- Integrated currency selection using a dropdown, replacing the static input field for currency.
- Removed the wallet input field, now auto-selecting the preferred wallet for event creation.
- Updated form validation to remove the wallet and closing date fields, ensuring ticket sales close when the event ends.
- Added functionality to load available currencies from the EventsApiService when the dialog opens, improving user experience.

These changes streamline the event creation process and enhance the overall usability of the CreateEventDialog component.
This commit is contained in:
padreug 2025-09-14 18:50:34 +02:00
parent 1544126d17
commit f7ac12bf76
3 changed files with 112 additions and 50 deletions

View file

@ -331,7 +331,7 @@ export class NostrmarketAPI extends BaseService {
* Get available currencies
*/
async getCurrencies(): Promise<string[]> {
const baseCurrencies = ['sat']
const baseCurrencies = ['sats']
try {
const apiCurrencies = await this.request<string[]>(