feat(notift): CSS classes

This commit is contained in:
izMystic
2021-10-22 00:14:18 -04:00
parent 06e44a4553
commit b29e31119d
5 changed files with 65 additions and 12 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ const app = Vue.createApp({
if (data?.action !== "notify") return;
const { text, length, type, caption } = data;
const { color, icon } = determineStyleFromVariant(type);
const { classes, icon } = determineStyleFromVariant(type);
// Make sure we have sucessfully fetched out config properly
if (!NOTIFY_CONFIG) {
@@ -44,7 +44,7 @@ const app = Vue.createApp({
position: NOTIFY_CONFIG.NotificationStyling.position ?? "right",
timeout: length,
caption,
color,
classes,
icon,
});
};