aboutsummaryrefslogtreecommitdiff
path: root/src/components/mobile_post_status_button
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2021-09-09 12:19:53 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2021-09-09 12:19:53 +0000
commita8a82ad12f2f7b9eb8fe7a57a3a7d503c6bbe2ed (patch)
treeeadd588ebb12fb7264d4152d949de02d7428c986 /src/components/mobile_post_status_button
parent1c535284334f34de5897c731f22639d45516805f (diff)
parent179af131ee31cee6bb55554460af048556a1c5be (diff)
Merge branch 'showMobileNewPost' into 'develop'
New user option: Always show floating New Post button See merge request pleroma/pleroma-fe!1395
Diffstat (limited to 'src/components/mobile_post_status_button')
-rw-r--r--src/components/mobile_post_status_button/mobile_post_status_button.js3
-rw-r--r--src/components/mobile_post_status_button/mobile_post_status_button.vue4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/components/mobile_post_status_button/mobile_post_status_button.js b/src/components/mobile_post_status_button/mobile_post_status_button.js
index 366ea89c..d27fb3b8 100644
--- a/src/components/mobile_post_status_button/mobile_post_status_button.js
+++ b/src/components/mobile_post_status_button/mobile_post_status_button.js
@@ -44,6 +44,9 @@ const MobilePostStatusButton = {
return this.autohideFloatingPostButton && (this.hidden || this.inputActive)
},
+ isPersistent () {
+ return !!this.$store.getters.mergedConfig.showNewPostButton
+ },
autohideFloatingPostButton () {
return !!this.$store.getters.mergedConfig.autohideFloatingPostButton
}
diff --git a/src/components/mobile_post_status_button/mobile_post_status_button.vue b/src/components/mobile_post_status_button/mobile_post_status_button.vue
index 767f8244..37becf4c 100644
--- a/src/components/mobile_post_status_button/mobile_post_status_button.vue
+++ b/src/components/mobile_post_status_button/mobile_post_status_button.vue
@@ -2,7 +2,7 @@
<div v-if="isLoggedIn">
<button
class="button-default new-status-button"
- :class="{ 'hidden': isHidden }"
+ :class="{ 'hidden': isHidden, 'always-show': isPersistent }"
@click="openPostForm"
>
<FAIcon icon="pen" />
@@ -47,7 +47,7 @@
}
@media all and (min-width: 801px) {
- .new-status-button {
+ .new-status-button:not(.always-show) {
display: none;
}
}