disable copying link when password not completed
This commit is contained in:
parent
9410defab6
commit
046f227003
3 changed files with 19 additions and 3 deletions
|
@ -57,6 +57,7 @@ module.exports = function(state, emit) {
|
|||
input.disabled = true;
|
||||
const copyBtn = document.getElementById('copy-btn');
|
||||
copyBtn.disabled = true;
|
||||
copyBtn.classList.add('success');
|
||||
copyBtn.replaceChild(
|
||||
html`<img src="${assets.get('check-16.svg')}" class="icon-check">`,
|
||||
copyBtn.firstChild
|
||||
|
@ -64,6 +65,7 @@ module.exports = function(state, emit) {
|
|||
await delay(2000);
|
||||
input.disabled = false;
|
||||
copyBtn.disabled = false;
|
||||
copyBtn.classList.remove('success');
|
||||
copyBtn.textContent = state.translate('copyUrlFormButton');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue