mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-09 05:09:39 +00:00
Copy chart link button
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
@if (displayVersions.length > 1) {
|
||||
<th></th>
|
||||
}
|
||||
<th></th>
|
||||
<th class="text-neutral-content">Uploaded</th>
|
||||
<th>
|
||||
<span
|
||||
@@ -105,6 +106,13 @@
|
||||
[formControl]="selectedVersion" />
|
||||
</td>
|
||||
}
|
||||
<td class="px-0">
|
||||
<div class="tooltip tooltip-accent tooltip-right" data-tip="Copy chart link">
|
||||
<button class="btn btn-circle btn-ghost btn-xs" (click)="copyLink(version.md5)">
|
||||
<i class="bi bi-link-45deg text-lg -mt-0.5"></i>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
<td>{{ version.modifiedTime | date: 'y/MM/dd' }}</td>
|
||||
<td>
|
||||
<div class="flex flex-nowrap items-center">
|
||||
|
||||
@@ -73,6 +73,9 @@ export class ChartSidebarMenutComponent implements OnInit {
|
||||
.replace(/^\/|\/$/g, '')
|
||||
}
|
||||
|
||||
copyLink(hash: string) {
|
||||
navigator.clipboard.writeText(`https://enchor.us/?hash=${hash}`)
|
||||
}
|
||||
copyHash(hash: string) {
|
||||
navigator.clipboard.writeText(hash)
|
||||
}
|
||||
|
||||
@@ -172,6 +172,7 @@ export class ChartSidebarComponent implements OnInit {
|
||||
.uniq()
|
||||
.value(),
|
||||
}))
|
||||
.filter(g => g.issues.length > 0)
|
||||
.value()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user