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