add ability to close reply box under posts that were deleted
This commit is contained in:
parent
fafa399d74
commit
c6baf6871f
6 changed files with 26 additions and 1 deletions
|
|
@ -37,6 +37,8 @@
|
||||||
- add option to prevent page from getting pushed when making a new post with streaming api enabled (similar to 3rd "for unreads" option)
|
- add option to prevent page from getting pushed when making a new post with streaming api enabled (similar to 3rd "for unreads" option)
|
||||||
- add link on user card to open profiles in iceshrimp-fe
|
- add link on user card to open profiles in iceshrimp-fe
|
||||||
- add option to open conversation view by clicking empty space in posts
|
- add option to open conversation view by clicking empty space in posts
|
||||||
|
- add ability to close the reply box under posts that were deleted
|
||||||
|
- also an option to close it automatically
|
||||||
- add a script to download ruffle for flash support (requires python3 and requests library)
|
- add a script to download ruffle for flash support (requires python3 and requests library)
|
||||||
- download by entering `tools/` and running `python3 download_ruffle.py`
|
- download by entering `tools/` and running `python3 download_ruffle.py`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -243,7 +243,8 @@ const PostStatusForm = {
|
||||||
activeEmojiInput: undefined,
|
activeEmojiInput: undefined,
|
||||||
activeTextInput: undefined,
|
activeTextInput: undefined,
|
||||||
subjectVisible: showSubject,
|
subjectVisible: showSubject,
|
||||||
showingPostConfirmDialog: false
|
showingPostConfirmDialog: false,
|
||||||
|
notClosed: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -295,6 +295,16 @@
|
||||||
<FAIcon icon="eye-slash" />
|
<FAIcon icon="eye-slash" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<button
|
||||||
|
v-if="replyTo !== undefined && $parent.deleted"
|
||||||
|
class="poll-icon button-unstyled"
|
||||||
|
:title="$t('nav.close')"
|
||||||
|
@click="$parent.toggleReplying()"
|
||||||
|
>
|
||||||
|
<FAIcon icon="xmark" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<button
|
<button
|
||||||
v-if="posting"
|
v-if="posting"
|
||||||
disabled
|
disabled
|
||||||
|
|
|
||||||
|
|
@ -240,6 +240,14 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting
|
||||||
|
path="autoCloseReplyUIWhenPostDeleted"
|
||||||
|
expert="1"
|
||||||
|
>
|
||||||
|
{{ $t('settings.auto_close_reply_ui_when_post_deleted') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
path="virtualScrolling"
|
path="virtualScrolling"
|
||||||
|
|
|
||||||
|
|
@ -187,6 +187,8 @@ const Status = {
|
||||||
return highlightClass(user)
|
return highlightClass(user)
|
||||||
},
|
},
|
||||||
deleted () {
|
deleted () {
|
||||||
|
if (this.$store.getters.mergedConfig.autoCloseReplyUIWhenPostDeleted && this.statusoid.deleted && this.replying)
|
||||||
|
this.toggleReplying()
|
||||||
return this.statusoid.deleted
|
return this.statusoid.deleted
|
||||||
},
|
},
|
||||||
getDeletedWSSOption () {
|
getDeletedWSSOption () {
|
||||||
|
|
|
||||||
|
|
@ -306,6 +306,7 @@
|
||||||
"bubble_timeline": "Bubble timeline",
|
"bubble_timeline": "Bubble timeline",
|
||||||
"bubble_timeline_description": "Posts from instances close to yours, as recommended by the admins",
|
"bubble_timeline_description": "Posts from instances close to yours, as recommended by the admins",
|
||||||
"chats": "Chats",
|
"chats": "Chats",
|
||||||
|
"close": "Close",
|
||||||
"dms": "Direct messages",
|
"dms": "Direct messages",
|
||||||
"friend_requests": "Follow requests",
|
"friend_requests": "Follow requests",
|
||||||
"home_timeline": "Home timeline",
|
"home_timeline": "Home timeline",
|
||||||
|
|
@ -482,6 +483,7 @@
|
||||||
"app_name": "App name",
|
"app_name": "App name",
|
||||||
"attachmentRadius": "Attachments",
|
"attachmentRadius": "Attachments",
|
||||||
"attachments": "Attachments",
|
"attachments": "Attachments",
|
||||||
|
"auto_close_reply_ui_when_post_deleted": "Automatically close the reply box when the post you're replying to is deleted",
|
||||||
"auto_refresh_on_required": "Automatically refresh when one of the below options are changed",
|
"auto_refresh_on_required": "Automatically refresh when one of the below options are changed",
|
||||||
"autohide_floating_post_button": "Automatically hide New Post button (mobile)",
|
"autohide_floating_post_button": "Automatically hide New Post button (mobile)",
|
||||||
"avatar": "Avatar",
|
"avatar": "Avatar",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue