1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 21:22:35 +01:00

fixes #522 copy button check mark

This commit is contained in:
Danny Coates 2017-08-17 09:15:45 -07:00
parent fa5573a5ff
commit a7aee1450f
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -13,6 +13,7 @@ import Storage from './storage';
import * as metrics from './metrics'; import * as metrics from './metrics';
import * as progress from './progress'; import * as progress from './progress';
import * as fileList from './fileList'; import * as fileList from './fileList';
import checkImg from '../../public/resources/check-16.svg';
const storage = new Storage(); const storage = new Storage();
@ -219,8 +220,8 @@ document.addEventListener('DOMContentLoaded', function() {
//disable button for 3s //disable button for 3s
copyBtn.disabled = true; copyBtn.disabled = true;
link.disabled = true; link.disabled = true;
copyBtn.innerHtml = copyBtn.removeAttribute('data-l10n-id');
'<img src="/resources/check-16.svg" class="icon-check"></img>'; copyBtn.innerHTML = `<img src="${checkImg}" class="icon-check"></img>`;
setTimeout(() => { setTimeout(() => {
copyBtn.disabled = !allowedCopy(); copyBtn.disabled = !allowedCopy();
copyBtn.setAttribute('data-l10n-id', 'copyUrlFormButton'); copyBtn.setAttribute('data-l10n-id', 'copyUrlFormButton');