Skip to content

Commit

Permalink
Fixing issue with new template dialog always appearing (#3936)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Nov 6, 2023
1 parent 651aa5e commit aa34c76
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
3 changes: 3 additions & 0 deletions src/dispatch/static/dispatch/src/case/type/Table.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<v-container fluid>
<new-edit-sheet />
<new-template-sheet @new-document-created="addItem($event)" />
<v-row no-gutters>
<v-col>
<v-alert closable icon="mdi-school" prominent text type="info">
Expand Down Expand Up @@ -83,13 +84,15 @@ import { mapActions } from "vuex"
import SettingsBreadcrumbs from "@/components/SettingsBreadcrumbs.vue"
import NewEditSheet from "@/case/type/NewEditSheet.vue"
import NewTemplateSheet from "@/document/template/TemplateNewEditSheet.vue"
export default {
name: "CaseTypeTable",
components: {
NewEditSheet,
SettingsBreadcrumbs,
NewTemplateSheet,
},
data() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<template>
<v-form @submit.prevent v-slot="{ isValid }">
<v-navigation-drawer
:model-value="showCreateEdit"
@update:model-value="() => {}"
location="right"
width="500"
>
<v-navigation-drawer v-model="showCreateEdit" location="right" width="500" absolute temporary>
<template #prepend>
<v-list-item lines="two">
<v-list-item-title v-if="id" class="text-h6"> Edit </v-list-item-title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<v-btn icon variant="text" @click="createEditShow({ resource_type: resourceType })">
<v-icon>mdi-plus</v-icon>
</v-btn>
<new-edit-sheet @new-document-created="addItem($event)" />
</template>
<template #no-data>
<v-list-item>
Expand All @@ -41,7 +40,6 @@ import { mapActions } from "vuex"
import { cloneDeep } from "lodash"
import DocumentApi from "@/document/api"
import NewEditSheet from "@/document/template/TemplateNewEditSheet.vue"
export default {
name: "TemplateSelect",
Expand Down Expand Up @@ -73,10 +71,6 @@ export default {
},
},
components: {
NewEditSheet,
},
data() {
return {
loading: false,
Expand Down
3 changes: 3 additions & 0 deletions src/dispatch/static/dispatch/src/incident/type/Table.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<v-container fluid>
<new-edit-sheet />
<new-template-sheet @new-document-created="addItem($event)" />
<v-row no-gutters>
<v-col>
<v-alert closable icon="mdi-school" prominent text type="info">
Expand Down Expand Up @@ -74,13 +75,15 @@ import { mapActions } from "vuex"
import NewEditSheet from "@/incident/type/NewEditSheet.vue"
import SettingsBreadcrumbs from "@/components/SettingsBreadcrumbs.vue"
import NewTemplateSheet from "@/document/template/TemplateNewEditSheet.vue"
export default {
name: "IncidentTypeTable",
components: {
NewEditSheet,
SettingsBreadcrumbs,
NewTemplateSheet,
},
data() {
return {
Expand Down

0 comments on commit aa34c76

Please sign in to comment.