mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 22:06:06 +02:00
clean up noty and remove animate.css
This commit is contained in:
@@ -3,7 +3,6 @@ import { defineStore } from 'pinia';
|
||||
import { toast } from 'vue-sonner';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
import Noty from 'noty';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import {
|
||||
@@ -369,13 +368,9 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
.then((_args) => {
|
||||
const text = `Auto invite sent to ${ref.senderUsername}`;
|
||||
if (AppDebug.errorNoty) {
|
||||
AppDebug.errorNoty.close();
|
||||
toast.dismiss(AppDebug.errorNoty);
|
||||
}
|
||||
AppDebug.errorNoty = new Noty({
|
||||
type: 'info',
|
||||
text
|
||||
});
|
||||
AppDebug.errorNoty.show();
|
||||
AppDebug.errorNoty = toast.info(text);
|
||||
console.log(text);
|
||||
notificationRequest
|
||||
.hideNotification({
|
||||
@@ -1341,10 +1336,7 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
console.log('Notification response', args);
|
||||
if (!args.json) return;
|
||||
handleNotificationV2Hide(notificationId);
|
||||
new Noty({
|
||||
type: 'success',
|
||||
text: escapeTag(args.json)
|
||||
}).show();
|
||||
toast.success(escapeTag(args.json));
|
||||
})
|
||||
.catch(() => {
|
||||
handleNotificationV2Hide(notificationId);
|
||||
|
||||
Reference in New Issue
Block a user