add network
This commit is contained in:
@@ -178,7 +178,7 @@ onMounted(async () => {
|
||||
// await categoriesStore.fetchCategories(spaceStore.selectedSpaceId)
|
||||
try {
|
||||
let updateDTO = buildUpdate()
|
||||
await categoriesService.updateCategory(spaceStore.selectedSpaceId, updateDTO)
|
||||
await categoriesService.updateCategory(spaceStore.selectedSpaceId, Number(categoryId.value), updateDTO)
|
||||
console.log(updateDTO)
|
||||
await moveUser()
|
||||
} catch (e) {
|
||||
@@ -224,7 +224,7 @@ onMounted(async () => {
|
||||
:callback="(confirmed: boolean) => { if (confirmed) deleteCategory(); isDeleteAlertVisible = false; }"
|
||||
/>
|
||||
<div class="flex flex-col w-full ">
|
||||
<div class=" flex-col " v-tooltip.focus.bottom="'Only emoji supported'">
|
||||
<div class="flex flex-col " v-tooltip.focus.bottom="'Only emoji supported'">
|
||||
<input
|
||||
class="
|
||||
block w-full
|
||||
@@ -249,30 +249,30 @@ onMounted(async () => {
|
||||
class="text-sm !text-red-500 font-extralight">Icon cannot be empty or non-emoji</span>
|
||||
</div>
|
||||
|
||||
<div class="w-full !items-center !justify-center">
|
||||
<div class="flex w-full !items-center !justify-center">
|
||||
<SelectButton
|
||||
v-model="categoryType"
|
||||
:options="options"
|
||||
optionLabel="label"
|
||||
optionValue="value"
|
||||
class="!w-full !items-center !justify-center "
|
||||
class="!w-full !items-center !justify-center !border-none "
|
||||
/>
|
||||
<span v-if="isCategoryTypeError"
|
||||
class="text-sm !text-red-500 font-extralight">Category type cannot be empty</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="flex flex-col w-full justify-items-start">
|
||||
<div class="flex flex-col w-full justify-items-start">
|
||||
<label class="!font-semibold text-gray-600 pl-2">Category name</label>
|
||||
<div class="card !rounded-3xl !justify-start !items-start !p-4 !pl-5 ">
|
||||
<div class="flex card !rounded-3xl !justify-start !items-start !p-4 !pl-5 ">
|
||||
<input class="font-extralight w-full focus:outline-0" placeholder="Name" v-model="categoryName"
|
||||
@input="categoryName.length !== 0 ? isCategoryNameError = false : true"/>
|
||||
</div>
|
||||
<span v-if="isCategoryNameError" class="text-sm !text-red-500 font-extralight">Name cannot be empty</span>
|
||||
</div>
|
||||
<div class="flex flex-col w-full justify-items-start">
|
||||
<div class="flex flex-col w-full justify-items-start">
|
||||
<label class="!font-semibold text-gray-600 !pl-2">Category description</label>
|
||||
<div class="card !justify-start !items-start !pl-2">
|
||||
<div class="flex card !justify-start !items-start !pl-2">
|
||||
<textarea
|
||||
class="!font-extralight !text-start !pl-2 w-full focus:outline-0 !focus:border-0 !@focus:shadow-none !bg-white !border-0 min-h-36"
|
||||
style="box-shadow: none !important;"
|
||||
|
||||
Reference in New Issue
Block a user