Renamed the notification settings component to Mag

This commit is contained in:
Natty 2024-02-29 02:13:21 +01:00
parent a169ebb004
commit 459f944243
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
4 changed files with 9 additions and 8 deletions

View File

@ -54,6 +54,7 @@ import { $i } from "@/account";
import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata";
import MkPushNotificationAllowButton from "@/components/MkPushNotificationAllowButton.vue";
import MagNotificationSettingsWindow from "@/components/MagNotificationSettingsWindow.vue";
import {
magLegacyNotificationType,
magNotificationType,
@ -89,9 +90,9 @@ function configure() {
)
.includes(x)
);
os.popup(
os.popup<typeof MagNotificationSettingsWindow>(
defineAsyncComponent(
() => import("@/components/MkNotificationSettingWindow.vue")
() => import("@/components/MagNotificationSettingsWindow.vue")
),
{
includingTypes,

View File

@ -22,7 +22,7 @@ import { updateColumn } from "./deck-store";
import XNotifications from "@/components/MagNotifications.vue";
import * as os from "@/os";
import { i18n } from "@/i18n";
import MkNotificationSettingWindow from "@/components/MkNotificationSettingWindow.vue";
import MagNotificationSettingsWindow from "@/components/MagNotificationSettingsWindow.vue";
import { types } from "magnetar-common";
const props = defineProps<{
@ -39,9 +39,9 @@ const includingTypes = ref<types.NotificationType[] | undefined>(
);
function func(): void {
os.popup<typeof MkNotificationSettingWindow>(
os.popup<typeof MagNotificationSettingsWindow>(
defineAsyncComponent(
() => import("@/components/MkNotificationSettingWindow.vue")
() => import("@/components/MagNotificationSettingsWindow.vue")
),
{
includingTypes: props.column.includingTypes,

View File

@ -32,10 +32,10 @@ import { useWidgetPropsManager, Widget, WidgetComponentExpose } from "./widget";
import { GetFormResultType } from "@/scripts/form";
import MkContainer from "@/components/MkContainer.vue";
import XNotifications from "@/components/MagNotifications.vue";
import MkNotificationSettingWindow from "@/components/MkNotificationSettingWindow.vue";
import * as os from "@/os";
import { i18n } from "@/i18n";
import { types } from "magnetar-common";
import MagNotificationSettingsWindow from "@/components/MagNotificationSettingsWindow.vue";
const name = "notifications";
@ -72,8 +72,8 @@ const { widgetProps, configure, save } = useWidgetPropsManager(
const configureNotification = () => {
os.popup(
defineAsyncComponent<typeof MkNotificationSettingWindow>(
() => import("@/components/MkNotificationSettingWindow.vue")
defineAsyncComponent<typeof MagNotificationSettingsWindow>(
() => import("@/components/MagNotificationSettingsWindow.vue")
),
{
includingTypes: