-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc58b42
commit b8db54d
Showing
9 changed files
with
257 additions
and
46 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<template> | ||
<model-editor-base | ||
:loading="loading" | ||
:dialog="dialog" | ||
@save="saveObject" | ||
@delete="deleteObject" | ||
@close="emit('close')" | ||
:is-update="isUpdate()" | ||
:is-changed="editingObjChanged" | ||
:model-class="modelClass" | ||
:object-name="editingObjName()"> | ||
<v-card-text> | ||
<v-form :disabled="loading"> | ||
Coming Soon | ||
</v-form> | ||
</v-card-text> | ||
</model-editor-base> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import {onMounted, PropType} from "vue"; | ||
import {CustomFilter} from "@/openapi"; | ||
import {useModelEditorFunctions} from "@/composables/useModelEditorFunctions"; | ||
import ModelEditorBase from "@/components/model_editors/ModelEditorBase.vue"; | ||
const props = defineProps({ | ||
item: {type: {} as PropType<CustomFilter>, required: false, default: null}, | ||
itemId: {type: [Number, String], required: false, default: undefined}, | ||
dialog: {type: Boolean, default: false} | ||
}) | ||
const emit = defineEmits(['create', 'save', 'delete', 'close']) | ||
const {setupState, deleteObject, saveObject, isUpdate, editingObjName, loading, editingObj, editingObjChanged, modelClass} = useModelEditorFunctions<CustomFilter>('CustomFilter', emit) | ||
onMounted(() => { | ||
setupState(props.item, props.itemId, {}) | ||
}) | ||
</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
Oops, something went wrong.