diff --git a/js/src/components/OAuth/AuthorizeApplication.vue b/js/src/components/OAuth/AuthorizeApplication.vue index 1f9bb0c0c..d3ae34513 100644 --- a/js/src/components/OAuth/AuthorizeApplication.vue +++ b/js/src/components/OAuth/AuthorizeApplication.vue @@ -87,7 +87,7 @@ import { useMutation } from "@vue/apollo-composable"; import { AUTORIZE_APPLICATION } from "@/graphql/application"; import RouteName from "@/router/name"; import { IApplication } from "@/types/application.model"; -import { scope } from "./scopes"; +import { scope as oAuthScopes } from "./scopes"; import AlertCircle from "vue-material-design-icons/AlertCircle.vue"; const { t } = useI18n({ useScope: "global" }); @@ -104,7 +104,7 @@ const isOpen = ref(-1); const collapses = computed(() => (props.scope ?? "") .split(" ") - .map((localScope) => scope[localScope]) + .map((localScope) => oAuthScopes[localScope]) .filter((localScope) => localScope) ); diff --git a/js/src/components/core/CustomSnackbar.vue b/js/src/components/core/CustomSnackbar.vue index f0193db25..74b21d1ad 100644 --- a/js/src/components/core/CustomSnackbar.vue +++ b/js/src/components/core/CustomSnackbar.vue @@ -34,7 +34,7 @@ import { computed, onMounted, ref } from "vue"; import { useI18n } from "vue-i18n"; -type position = +type positionValues = | "top-right" | "top" | "top-left" @@ -49,7 +49,7 @@ const props = withDefaults( onAction?: () => any; cancelText?: string | null; variant?: string; - position?: position; + position?: positionValues; pauseOnHover?: boolean; indefinite?: boolean; }>(), diff --git a/js/src/views/Group/GroupSettings.vue b/js/src/views/Group/GroupSettings.vue index 7d17e283b..453da47ee 100644 --- a/js/src/views/Group/GroupSettings.vue +++ b/js/src/views/Group/GroupSettings.vue @@ -196,7 +196,7 @@ import RouteName from "@/router/name"; import { buildFileFromIMedia } from "@/utils/image"; import { useAvatarMaxSize, useBannerMaxSize } from "@/composition/config"; import { useI18n } from "vue-i18n"; -import { computed, ref, watch, defineAsyncComponent, inject } from "vue"; +import { computed, ref, defineAsyncComponent, inject } from "vue"; import { useGroup, useUpdateGroup } from "@/composition/apollo/group"; import { useCurrentActorClient,