Skip to content

Commit

Permalink
Merge pull request #10319 from mkllnk/show-flash-until-closed-by-user
Browse files Browse the repository at this point in the history
Show new flash messages until discarded by user
  • Loading branch information
filipefurtad0 authored Jan 25, 2023
2 parents 7f3cf74 + 2bba381 commit 65d8337
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
9 changes: 0 additions & 9 deletions app/webpacker/controllers/flash_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ document.addEventListener("turbolinks:before-cache", () =>
);

export default class extends Controller {
connect() {
setTimeout(this.fadeout.bind(this), 3000);
}

fadeout() {
this.element.classList.add("animate-hide-500");
setTimeout(this.close.bind(this), 500);
}

close() {
this.element.remove();
}
Expand Down
11 changes: 0 additions & 11 deletions app/webpacker/css/darkswarm/animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@

// ANIMATION FUNCTIONS

@keyframes fade-out-hide {
0% {opacity: 1; visibility: visible;}
99% {opacity: 0; visibility: visible;}
100% {opacity: 0; visibility: hidden;}
}

.animate-hide-500 {
animation: fade-out-hide 0.5s;
}

//
@-webkit-keyframes slideInDown {
0% {
opacity: 0;
Expand Down

0 comments on commit 65d8337

Please sign in to comment.