Skip to content

Commit e54ace6

Browse files
committed
fix(frontend): edit allocation name validation
1 parent 8053a38 commit e54ace6

File tree

1 file changed

+4
-1
lines changed
  • apps/frontend/src/pages/servers/manage/[id]/options

1 file changed

+4
-1
lines changed

apps/frontend/src/pages/servers/manage/[id]/options/network.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@
3434
v-model="newAllocationName"
3535
type="text"
3636
class="bg-bg-input w-full rounded-lg p-4"
37+
maxlength="32"
3738
placeholder="e.g. Secondary allocation"
3839
/>
3940
</div>
4041
<div class="mb-1 mt-4 flex justify-end gap-4">
4142
<Button transparent @click="editAllocationModal?.hide()"> Cancel </Button>
42-
<Button color="primary" @click="editAllocation"> <SaveIcon /> Update Allocation </Button>
43+
<Button color="primary" :disabled="!newAllocationName" @click="editAllocation">
44+
<SaveIcon /> Update Allocation
45+
</Button>
4346
</div>
4447
</UiServersPyroModal>
4548
</Modal>

0 commit comments

Comments
 (0)