@@ -11,6 +11,11 @@
@@ -53,4 +61,16 @@ export default {
border-radius: 8px;
background-color: var(--success);
}
+.fadeOut {
+ animation: fadeOut ease 1s;
+}
+
+@keyframes fadeOut {
+ from {
+ opacity: 1;
+ }
+ to {
+ opacity: 0;
+ }
+}
\ No newline at end of file
diff --git a/src/store/mutations.js b/src/store/mutations.js
index 3055d7e..b8ee51c 100644
--- a/src/store/mutations.js
+++ b/src/store/mutations.js
@@ -27,7 +27,8 @@ export default {
state.serverInfo = info;
},
addPopUp(state, item) {
- state.popups.push(item);
+ item.time = Date.now();
+ state.popups.unshift(item);
},
removePopUp(state, item) {
let index = state.popups.indexOf(item);