Skip to content

Commit

Permalink
Conditionally load pro module
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 committed Dec 19, 2023
1 parent 707e6b6 commit aa0e79b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
7 changes: 1 addition & 6 deletions src/dispatch/static/dispatch/src/forms/EditForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
<v-btn v-bind="props" color="red en-1" variant="text"> Exit without saving </v-btn>
</template>
<v-list>
<v-list-item
@click="
showCreateEdit = false
closeCreateEdit()
"
>
<v-list-item @click="showCreateEdit = false; closeCreateEdit()">

Check failure on line 36 in src/dispatch/static/dispatch/src/forms/EditForm.vue

View workflow job for this annotation

GitHub Actions / build

Replace `·@click="showCreateEdit·=·false;·closeCreateEdit()"` with `⏎················@click="⏎··················showCreateEdit·=·false⏎··················closeCreateEdit()⏎················"⏎··············`
<v-list-item-title> You will lose any changes. Continue? </v-list-item-title>
</v-list-item>
<v-list-item @click="showCreateEdit = true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@
<v-btn v-bind="props" color="red en-1" variant="text"> Exit without saving </v-btn>
</template>
<v-list>
<v-list-item
@click="
showAttorneyEdit = false
closeAttorneyEdit()
"
>
<v-list-item @click="showAttorneyEdit = false; closeAttorneyEdit()">

Check failure on line 65 in src/dispatch/static/dispatch/src/forms/table/AttorneyEditForm.vue

View workflow job for this annotation

GitHub Actions / build

Replace `·@click="showAttorneyEdit·=·false;·closeAttorneyEdit()"` with `⏎················@click="⏎··················showAttorneyEdit·=·false⏎··················closeAttorneyEdit()⏎················"⏎··············`
<v-list-item-title> You will lose any changes. Continue? </v-list-item-title>
</v-list-item>
<v-list-item @click="showAttorneyEdit = true">
Expand Down
6 changes: 5 additions & 1 deletion src/dispatch/static/dispatch/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { vuetifyPlugin } from "./vuetify/"
import router from "./router/"
import store from "./store"
import "@formkit/themes/genesis"
import "@formkit/pro/genesis"
if (import.meta.env.VITE_FORMKIT_PRO_PROJECT_KEY) {
import("@formkit/pro/genesis").then((module) => {
new module()
})
}

import { createProPlugin, inputs } from "@formkit/pro"
import { plugin, defaultConfig } from "@formkit/vue"
Expand Down

0 comments on commit aa0e79b

Please sign in to comment.