Check if emoji is already a local one
This commit is contained in:
parent
0ccff2019f
commit
e04d7d2c97
6 changed files with 26 additions and 3 deletions
|
|
@ -86,6 +86,12 @@ export default {
|
|||
required: false,
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// Assume is local to be true if unspecified, so the button isn't show where it probably should not be
|
||||
isLocal: {
|
||||
required: false,
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
// NEVER EVER TOUCH DATA INSIDE RENDER
|
||||
|
|
@ -165,9 +171,11 @@ export default {
|
|||
return <StillImageEmojiPopover
|
||||
class="emoji img"
|
||||
src={url}
|
||||
shortcode={shortcode}
|
||||
title={`:${shortcode}:`}
|
||||
alt={`:${shortcode}:`}
|
||||
|
||||
shortcode={shortcode}
|
||||
isLocal={this.isLocal}
|
||||
/>
|
||||
}
|
||||
)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue