Skip to content

Commit 0fd13fe

Browse files
committed
web,edgecreator: Fix toast import
1 parent 12f932d commit 0fd13fe

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

apps/edgecreator/src/composables/useRedirect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useToast } from "bootstrap-vue-next";
1+
import { useToastController } from "bootstrap-vue-next";
22
import { watch } from "vue";
33
import { useRoute } from "vue-router";
44

@@ -9,7 +9,7 @@ export default () =>
99
() => route.hash,
1010
(newValue) => {
1111
const toastError = (message: string) =>
12-
useToast().show!({
12+
useToastController().show!({
1313
props: {
1414
body: message,
1515
title: "Error",

apps/edgecreator/src/composables/useStepOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useToast } from "bootstrap-vue-next";
1+
import { useToastController } from "bootstrap-vue-next";
22
import interact from "interactjs";
33
import { useI18n } from "vue-i18n";
44

@@ -15,7 +15,7 @@ const shownTips: string[] = [];
1515

1616
export const useStepOptions = (props: BaseProps, attributeKeys: string[]) => {
1717
const stepStore = step();
18-
const toast = useToast();
18+
const toast = useToastController();
1919
const { t } = useI18n();
2020
const { zoom } = storeToRefs(ui());
2121
const width = computed(

apps/edgecreator/src/pages/upload.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ meta:
161161
import "cropperjs/dist/cropper.css";
162162
163163
import { useCookies } from "@vueuse/integrations/useCookies";
164-
import { useToast } from "bootstrap-vue-next";
164+
import { useToastController } from "bootstrap-vue-next";
165165
import type Cropper from "cropperjs";
166166
import { nextTick } from "vue";
167167
import type { CropperData } from "vue-cropperjs";
@@ -205,7 +205,7 @@ const initialContributors = computed(
205205
const addCrop = () => {
206206
const data = cropper.value!.getData() as CropperData;
207207
if (data.height < data.width) {
208-
useToast().show!({
208+
useToastController().show!({
209209
props: {
210210
body: i18n
211211
.t(

apps/edgecreator/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"strict": true,
1212
"esModuleInterop": true,
1313
"skipLibCheck": true,
14-
"moduleResolution": "node",
14+
"moduleResolution": "bundler",
1515
"resolveJsonModule": true,
1616
"noUnusedLocals": true,
1717
"strictNullChecks": true,

apps/web/src/components/BookcaseBook.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</template>
9797

9898
<script setup lang="ts">
99-
import { useToast } from "bootstrap-vue-next";
99+
import { useToastController } from "bootstrap-vue-next";
100100
import type { PageFlip } from "page-flip";
101101
102102
const { issuecode } = defineProps<{
@@ -111,7 +111,7 @@ const cloudinaryBaseUrl =
111111
const { fetchIssueUrls } = coa();
112112
const { getImagePath } = images();
113113
114-
const toast = useToast();
114+
const toast = useToastController();
115115
const edgeWidth = ref<number | null>(null);
116116
const coverHeight = ref<number | undefined>(undefined);
117117
const coverRatio = ref<number | undefined>(undefined);

apps/web/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"strict": true,
1212
"esModuleInterop": true,
1313
"skipLibCheck": true,
14-
"moduleResolution": "node",
14+
"moduleResolution": "bundler",
1515
"resolveJsonModule": true,
1616
"noUnusedLocals": true,
1717
"strictNullChecks": true,

0 commit comments

Comments
 (0)