0">
Suspicious Scores ({{ this.userInfo.suspicious_scores.length }})
diff --git a/nise-frontend/src/app/view-user/view-user.component.ts b/nise-frontend/src/app/view-user/view-user.component.ts
index 1d3a964..69f7e70 100644
--- a/nise-frontend/src/app/view-user/view-user.component.ts
+++ b/nise-frontend/src/app/view-user/view-user.component.ts
@@ -14,6 +14,7 @@ import {CuteLoadingComponent} from "../../corelib/components/cute-loading/cute-l
import {FilterManagerService} from "../filter-manager.service";
import {UserService} from "../../corelib/service/user.service";
import {FollowService} from "../../corelib/service/follow.service";
+import {TextReportService} from '../text-report.service';
interface UserInfo {
user_details: UserDetails;
@@ -196,6 +197,20 @@ export class ViewUserComponent implements OnInit, OnChanges, OnDestroy {
});
}
+ async copyReportToClipboard(): Promise {
+ if (!this.userInfo) {
+ return;
+ }
+
+ const report = TextReportService.generateTextReportForUserScores(
+ this.userInfo.user_details,
+ this.userInfo.suspicious_scores,
+ this.userInfo.similar_replays,
+ );
+
+ await navigator.clipboard.writeText(report);
+ }
+
protected readonly formatDuration = formatDuration;
protected readonly countryCodeToFlag = countryCodeToFlag;
protected readonly calculateTimeAgo = calculateTimeAgo;