Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7686790
retweet_button.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
918 B
Referenced Files
None
Subscribers
None
retweet_button.js
View Options
import
{
library
}
from
'@fortawesome/fontawesome-svg-core'
import
{
faRetweet
,
faPlus
,
faMinus
,
faCheck
}
from
'@fortawesome/free-solid-svg-icons'
library
.
add
(
faRetweet
,
faPlus
,
faMinus
,
faCheck
)
const
RetweetButton
=
{
props
:
[
'status'
,
'loggedIn'
,
'visibility'
],
data
()
{
return
{
animated
:
false
}
},
methods
:
{
retweet
()
{
if
(
!
this
.
status
.
repeated
)
{
this
.
$store
.
dispatch
(
'retweet'
,
{
id
:
this
.
status
.
id
})
}
else
{
this
.
$store
.
dispatch
(
'unretweet'
,
{
id
:
this
.
status
.
id
})
}
this
.
animated
=
true
setTimeout
(()
=>
{
this
.
animated
=
false
},
500
)
}
},
computed
:
{
mergedConfig
()
{
return
this
.
$store
.
getters
.
mergedConfig
},
remoteInteractionLink
()
{
return
this
.
$store
.
getters
.
remoteInteractionLink
({
statusId
:
this
.
status
.
id
})
}
}
}
export
default
RetweetButton
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 3, 4:42 PM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
437981
Default Alt Text
retweet_button.js (918 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment