mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Merge pull request #1545 from pixelfed/frontend-ui-refactor
Fixes #1544, allow read more to be disabled on posts
This commit is contained in:
commit
9e8ec7036e
3 changed files with 11 additions and 3 deletions
2
public/js/status.js
vendored
2
public/js/status.js
vendored
File diff suppressed because one or more lines are too long
|
@ -20,7 +20,7 @@
|
|||
"/js/profile.js": "/js/profile.js?id=ea657aeb8d50b124f7e5",
|
||||
"/js/quill.js": "/js/quill.js?id=9edfe94c043a1bc68860",
|
||||
"/js/search.js": "/js/search.js?id=b1bd588d07e682f8fce5",
|
||||
"/js/status.js": "/js/status.js?id=769dca36a9a31b7fda55",
|
||||
"/js/status.js": "/js/status.js?id=709b96bbcc47b605497b",
|
||||
"/js/theme-monokai.js": "/js/theme-monokai.js?id=344fb8527bb66574e4cd",
|
||||
"/js/timeline.js": "/js/timeline.js?id=2bf7f82e900bd72a73f9"
|
||||
}
|
||||
|
|
|
@ -499,6 +499,7 @@ export default {
|
|||
replyingToId: this.statusId,
|
||||
replyToIndex: 0,
|
||||
emoji: ['😀','🤣','😃','😄','😆','😉','😊','😋','😘','😗','😙','😚','🤗','🤩','🤔','🤨','😐','😑','😶','🙄','😏','😣','😥','😮','🤐','😪','😫','😴','😌','😛','😜','😝','🤤','😒','😓','😔','😕','🙃','🤑','😲','🙁','😖','😞','😟','😤','😭','😦','😧','😨','😩','🤯','😬','😰','😱','😳','🤪','😵','😡','😠','🤬','😷','🤒','🤕','🤢','🤮','🤧','😇','🤠','🤡','🤥','🤫','🤭','🧐','🤓','😈','👿','👹','👺','💀','👻','👽','🤖','💩','😺','😸','😹','😻','😼','😽','🙀','😿','😾','🤲','👐','🤝','👍','👎','👊','✊','🤛','🤜','🤞','✌️','🤟','🤘','👈','👉','👆','👇','☝️','✋','🤚','🖐','🖖','👋','🤙','💪','🖕','✍️','🙏','💍','💄','💋','👄','👅','👂','👃','👣','👁','👀','🧠','🗣','👤','👥'],
|
||||
showReadMore: true,
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -514,11 +515,18 @@ export default {
|
|||
|
||||
mounted() {
|
||||
this.fetchRelationships();
|
||||
if(localStorage.getItem('pf_metro_ui.exp.rm') == 'false') {
|
||||
this.showReadMore = false;
|
||||
} else {
|
||||
this.showReadMore = true;
|
||||
}
|
||||
},
|
||||
|
||||
updated() {
|
||||
$('.carousel').carousel();
|
||||
window.pixelfed.readmore();
|
||||
if(this.showReadMore == true) {
|
||||
window.pixelfed.readmore();
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Reference in a new issue