|
|
@@ -45,4 +45,14 @@ export class HomeComponent implements OnInit{ |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
copyTokenToClipboard() |
|
|
|
|
|
{ |
|
|
|
|
|
const el = document.createElement('textarea'); |
|
|
|
|
|
el.value = this.user?.token !== undefined ? this.user.token : ""; |
|
|
|
|
|
document.body.appendChild(el); |
|
|
|
|
|
el.select(); |
|
|
|
|
|
document.execCommand('copy'); |
|
|
|
|
|
document.body.removeChild(el); |
|
|
|
|
|
} |
|
|
} |
|
|
} |