Skip to content

Commit

Permalink
fix(allocations): name input validation
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 16, 2024
1 parent c0ae8cc commit c7d66a7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
v-model="newAllocationName"
type="text"
class="bg-bg-input w-full rounded-lg p-4"
maxlength="32"
placeholder="e.g. Secondary allocation"
/>
</div>
<div class="mb-1 mt-4 flex justify-end gap-4">
<Button transparent @click="newAllocationModal?.hide()"> Cancel </Button>
<Button color="primary" @click="addNewAllocation"> <PlusIcon /> Create allocation </Button>
<Button color="primary" @click="addNewAllocation" :disabled="!newAllocationName">

Check warning on line 16 in apps/frontend/src/pages/servers/manage/[id]/options/network.vue

View workflow job for this annotation

GitHub Actions / Build, Test, and Lint

Attribute ":disabled" should go before "@click"
<PlusIcon /> Create allocation
</Button>
</div>
</UiServersPyroModal>
</Modal>
Expand Down

0 comments on commit c7d66a7

Please sign in to comment.