mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2025-01-10 07:19:27 -07:00
Add actions to profile page
This commit is contained in:
parent
ff0e72da83
commit
8ddb0dfe37
1 changed files with 13 additions and 0 deletions
|
@ -217,6 +217,19 @@ async function displayProfile(opts) {
|
||||||
feedback += `</div>`;
|
feedback += `</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
feedback += `<div class="profileDataItem profileDataItem--separator">`;
|
||||||
|
feedback += `<div class="profileDataItem__label"></div>`;
|
||||||
|
feedback += `<div class="profileDataItem__value">actions</div>`;
|
||||||
|
feedback += `</div>`;
|
||||||
|
feedback += `<div class="profileDataItem">`;
|
||||||
|
feedback += `<div class="profileDataItem__label"></div>`;
|
||||||
|
feedback += `<div class="profileDataItem__value"><a href="/verify/${keyData.fingerprint}">verify signature</a></div>`;
|
||||||
|
feedback += `</div>`;
|
||||||
|
feedback += `<div class="profileDataItem">`;
|
||||||
|
feedback += `<div class="profileDataItem__label"></div>`;
|
||||||
|
feedback += `<div class="profileDataItem__value"><a href="/encrypt/${keyData.fingerprint}">encrypt message</a></div>`;
|
||||||
|
feedback += `</div>`;
|
||||||
|
|
||||||
// Display feedback
|
// Display feedback
|
||||||
document.body.querySelector('#profileData').innerHTML = feedback;
|
document.body.querySelector('#profileData').innerHTML = feedback;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue