Feature/copy logs (#1491)

* make text selectable on mobile

* make logs copyable and adjust copy format

* fix linting

* fix linting further

* linting

* add formatting to copied logs

* fix copy abstraction and add formatting for server log copy
This commit is contained in:
Lucy C
2022-06-09 10:21:39 -06:00
parent 09922c8dfa
commit 3cde39c7ed
10 changed files with 74 additions and 22 deletions

View File

@@ -37,7 +37,9 @@ export class SuccessPage {
async copy(address: string): Promise<void> {
const success = await this.copyToClipboard(address)
const message = success ? 'copied to clipboard!' : 'failed to copy'
const message = success
? 'Copied to clipboard!'
: 'Failed to copy to clipboard.'
const toast = await this.toastCtrl.create({
header: message,