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
1 changed files with 3 additions and 2 deletions

View File

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