|
|
|
|
@ -17,7 +17,7 @@
|
|
|
|
|
import {
|
|
|
|
|
dom, COLUMN, COLUMN_LITERAL, COMPARISON, ATTRIBUTES,
|
|
|
|
|
columnAscendingByDefault, columnIsSortable, COLUMN_TRANSFORMATION,
|
|
|
|
|
element, JOIN_URL_PASTE, communityQRCodeURL
|
|
|
|
|
element, JOIN_URL_PASTE, communityQRCodeURL, STAFF_ID_PASTE
|
|
|
|
|
} from './js/constants.js';
|
|
|
|
|
|
|
|
|
|
// Hidden communities for transparency.
|
|
|
|
|
@ -196,7 +196,7 @@ function addQRModalHandlers() {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const staffId = staff[~~(staff.length * Math.random())];
|
|
|
|
|
copyToClipboard(`@${staffId}`, 'Copied staff ID to clipboard.');
|
|
|
|
|
copyToClipboard(`@${staffId}`, STAFF_ID_PASTE);
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
@ -279,8 +279,8 @@ function copyToClipboard(text, toastText = JOIN_URL_PASTE) {
|
|
|
|
|
|
|
|
|
|
snackbar.classList.add('show')
|
|
|
|
|
|
|
|
|
|
// After 3 seconds, hide the snackbar.
|
|
|
|
|
setTimeout(() => snackbar.classList.remove('show'), 3000);
|
|
|
|
|
// After 5 seconds, hide the snackbar.
|
|
|
|
|
setTimeout(() => snackbar.classList.remove('show'), 5000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|