feat: disable Create Shipping Zone button if no name entered

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ben Weeks 2025-12-23 13:07:29 +00:00
parent bcdd001e1b
commit 284608e73c

View file

@ -93,7 +93,7 @@
<q-btn <q-btn
unelevated unelevated
color="primary" color="primary"
:disable="!zoneDialog.data.countries || !zoneDialog.data.countries.length || (zoneDialog.data.currency === 'sat' && zoneDialog.data.cost % 1 !== 0) || (zoneDialog.data.currency !== 'sat' && (zoneDialog.data.cost * 100) % 1 !== 0)" :disable="!zoneDialog.data.name || !zoneDialog.data.countries || !zoneDialog.data.countries.length || (zoneDialog.data.currency === 'sat' && zoneDialog.data.cost % 1 !== 0) || (zoneDialog.data.currency !== 'sat' && (zoneDialog.data.cost * 100) % 1 !== 0)"
type="submit" type="submit"
>Create Shipping Zone</q-btn >Create Shipping Zone</q-btn
> >