MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / toggleTransferCompletedClass

Function toggleTransferCompletedClass

app/components/peer-avatar.js:22–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 'data-receiving-progress': alias('peer.transfer.receivingProgress'),
21
22 toggleTransferCompletedClass() {
23 const className = 'transfer-completed';
24
25 later(
26 this,
27 function toggleClass() {
28 $(this.element)
29 .parent('.avatar')
30 .addClass(className)
31 .delay(2000)
32 .queue(function removeClass() {
33 $(this).removeClass(className).dequeue();
34 });
35 },
36 250,
37 );
38 },
39
40 init(...args) {
41 this._super(args);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected