Compare commits
15 Commits
i18n_crowd
...
link-copy-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
36fa76563e | ||
|
|
f96ac5e4ba | ||
|
|
bbbf10d233 | ||
|
|
e9d1a9abb6 | ||
|
|
8fdba0ca7c | ||
|
|
e5718700bc | ||
|
|
e40a0c844c | ||
|
|
e647746c93 | ||
|
|
9be77826e9 | ||
|
|
a9bb05c4da | ||
|
|
e1a9f2a27c | ||
|
|
ba62c13cfa | ||
|
|
3de744d5e9 | ||
|
|
61608cfe2d | ||
|
|
db755ef300 |
@@ -1,6 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
Accordion,
|
Accordion,
|
||||||
ActionIcon,
|
ActionIcon,
|
||||||
|
Anchor,
|
||||||
Box,
|
Box,
|
||||||
Button,
|
Button,
|
||||||
Center,
|
Center,
|
||||||
@@ -34,6 +35,8 @@ const MyShares = () => {
|
|||||||
|
|
||||||
const [reverseShares, setReverseShares] = useState<MyReverseShare[]>();
|
const [reverseShares, setReverseShares] = useState<MyReverseShare[]>();
|
||||||
|
|
||||||
|
const appUrl = config.get("general.appUrl");
|
||||||
|
|
||||||
const getReverseShares = () => {
|
const getReverseShares = () => {
|
||||||
shareService
|
shareService
|
||||||
.getMyReverseShares()
|
.getMyReverseShares()
|
||||||
@@ -119,9 +122,11 @@ const MyShares = () => {
|
|||||||
<Accordion.Panel>
|
<Accordion.Panel>
|
||||||
{reverseShare.shares.map((share) => (
|
{reverseShare.shares.map((share) => (
|
||||||
<Group key={share.id} mb={4}>
|
<Group key={share.id} mb={4}>
|
||||||
<Text maw={120} truncate>
|
<Anchor href={`${appUrl}/share/${share.id}`}>
|
||||||
{share.id}
|
<Text maw={120} truncate>
|
||||||
</Text>
|
{share.id}
|
||||||
|
</Text>
|
||||||
|
</Anchor>
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
color="victoria"
|
color="victoria"
|
||||||
variant="light"
|
variant="light"
|
||||||
@@ -129,9 +134,7 @@ const MyShares = () => {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (window.isSecureContext) {
|
if (window.isSecureContext) {
|
||||||
clipboard.copy(
|
clipboard.copy(
|
||||||
`${config.get(
|
`${appUrl}/share/${share.id}`
|
||||||
"general.appUrl"
|
|
||||||
)}/share/${share.id}`
|
|
||||||
);
|
);
|
||||||
toast.success(
|
toast.success(
|
||||||
"The share link was copied to the keyboard."
|
"The share link was copied to the keyboard."
|
||||||
|
|||||||
Reference in New Issue
Block a user