-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move to category and create category
- Loading branch information
1 parent
7fdfc6e
commit 5155935
Showing
6 changed files
with
151 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
desk/src/components/knowledge-base/MoveToCategoryModal.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<Dialog v-model="showDialog" :options="{ title: 'Move To', actions }"> | ||
<template #body-content> | ||
<div class="flex flex-col flex-1 gap-3"> | ||
<Link | ||
class="form-control" | ||
doctype="HD Article Category" | ||
placeholder="Select Category" | ||
v-model="category" | ||
label="Category" | ||
/> | ||
</div> | ||
</template> | ||
</Dialog> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
import { Dialog } from "frappe-ui"; | ||
import { Link } from "@/components"; | ||
const emit = defineEmits(["move"]); | ||
const showDialog = defineModel<boolean>(); | ||
const category = ref(""); | ||
const actions = [ | ||
{ | ||
label: "Move", | ||
variant: "solid", | ||
onClick: () => emit("move", category.value), | ||
}, | ||
]; | ||
</script> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters