Fix ts errors
This commit is contained in:
parent
e7b05e6760
commit
e9a18f5dce
3 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import log from "electron-log";
|
||||
import type { $Bus } from "~/plugins/emitter";
|
||||
|
||||
export enum ToastTypeEnum {
|
||||
default = "default",
|
||||
|
|
@ -20,7 +21,7 @@ export default abstract class Toast {
|
|||
|
||||
/** Affiche un toast message */
|
||||
public static toast(message: string, type: ToastTypeEnum = ToastType.default, title: string | null = null): void {
|
||||
const { $bus } = useNuxtApp();
|
||||
const $bus = useNuxtApp().$bus as $Bus;
|
||||
$bus.$emit("toast", {message, type, title});
|
||||
const prefix: string = `${type.toLowerCase()} : `;
|
||||
switch (type) {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
// eslint-disable-next-line import/named
|
||||
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
||||
import { defineComponent } from "vue";
|
||||
import ToolboxHelper from "~/classes/ToolboxHelper";
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import {
|
|||
faSquare,
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
// https://github.com/FortAwesome/vue-fontawesome/issues/418
|
||||
// eslint-disable-next-line import/named
|
||||
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
||||
|
||||
config.autoAddCss = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue