Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created December 1, 2018 03:14
Show Gist options
  • Select an option

  • Save iaindooley/5b4b552cd0271748b4ef4a3e810f610d to your computer and use it in GitHub Desktop.

Select an option

Save iaindooley/5b4b552cd0271748b4ef4a3e810f610d to your computer and use it in GitHub Desktop.
Snap cards into position
function snapBack(notification)
{
var notif = new Notification(notification);
if(notif.member().notTrellinator())
{
notif.movedCard().label("Snap");
notif.movedCard().moveToList(notif.listBefore(),"top");
}
}
function dontArchive(notification)
{
var notif = new Notification(notification);
if(notif.member().notTrellinator())
{
notif.archivedCard().label("Snap");
notif.archivedCard().unArchive();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment