aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/post_status_form/post_status_form.js12
-rw-r--r--src/components/post_status_form/post_status_form.vue2
-rw-r--r--src/components/timeline/timeline.js3
-rw-r--r--src/components/timeline/timeline.vue5
-rw-r--r--src/components/user_profile/user_profile.vue1
-rw-r--r--src/i18n/en.json3
-rw-r--r--src/modules/instance.js2
7 files changed, 17 insertions, 11 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index ab379c23..c28c51bf 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -56,6 +56,10 @@ const PostStatusForm = {
? this.copyMessageScope
: this.$store.state.users.currentUser.default_scope
+ const contentType = typeof this.$store.state.config.postContentType === 'undefined'
+ ? this.$store.state.instance.postContentType
+ : this.$store.state.config.postContentType
+
return {
dropFiles: [],
submitDisabled: false,
@@ -67,7 +71,8 @@ const PostStatusForm = {
status: statusText,
nsfw: false,
files: [],
- visibility: scope
+ visibility: scope,
+ contentType
},
caret: 0
}
@@ -166,11 +171,6 @@ const PostStatusForm = {
},
formattingOptionsEnabled () {
return this.$store.state.instance.formattingOptionsEnabled
- },
- defaultPostContentType () {
- return typeof this.$store.state.config.postContentType === 'undefined'
- ? this.$store.state.instance.postContentType
- : this.$store.state.config.postContentType
}
},
methods: {
diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue
index b3cc0ce6..5085570b 100644
--- a/src/components/post_status_form/post_status_form.vue
+++ b/src/components/post_status_form/post_status_form.vue
@@ -35,7 +35,7 @@
<div class="visibility-tray">
<span class="text-format" v-if="formattingOptionsEnabled">
<label for="post-content-type" class="select">
- <select id="post-content-type" v-model="defaultPostContentType" class="form-control">
+ <select id="post-content-type" v-model="newStatus.contentType" class="form-control">
<option value="text/plain">{{$t('post_status.content_type.plain_text')}}</option>
<option value="text/html">HTML</option>
<option value="text/markdown">Markdown</option>
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
index 85e0a055..40226674 100644
--- a/src/components/timeline/timeline.js
+++ b/src/components/timeline/timeline.js
@@ -11,7 +11,8 @@ const Timeline = {
'title',
'userId',
'tag',
- 'embedded'
+ 'embedded',
+ 'count'
],
data () {
return {
diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue
index e3eea3bd..8f28d65c 100644
--- a/src/components/timeline/timeline.vue
+++ b/src/components/timeline/timeline.vue
@@ -20,7 +20,10 @@
</div>
</div>
<div :class="classes.footer">
- <div v-if="bottomedOut" class="new-status-notification text-center panel-footer faint">
+ <div v-if="count===0" class="new-status-notification text-center panel-footer faint">
+ {{$t('timeline.no_statuses')}}
+ </div>
+ <div v-else-if="bottomedOut" class="new-status-notification text-center panel-footer faint">
{{$t('timeline.no_more_statuses')}}
</div>
<a v-else-if="!timeline.loading" href="#" v-on:click.prevent='fetchOlderStatuses()'>
diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue
index 79461291..09fb93de 100644
--- a/src/components/user_profile/user_profile.vue
+++ b/src/components/user_profile/user_profile.vue
@@ -10,6 +10,7 @@
<Timeline
:label="$t('user_card.statuses')"
:disabled="!user.statuses_count"
+ :count="user.statuses_count"
:embedded="true"
:title="$t('user_profile.timeline_title')"
:timeline="timeline"
diff --git a/src/i18n/en.json b/src/i18n/en.json
index 55ea7b24..518e8e0e 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -346,7 +346,8 @@
"repeated": "repeated",
"show_new": "Show new",
"up_to_date": "Up-to-date",
- "no_more_statuses": "No more statuses"
+ "no_more_statuses": "No more statuses",
+ "no_statuses": "No statuses"
},
"user_card": {
"approve": "Approve",
diff --git a/src/modules/instance.js b/src/modules/instance.js
index 59c6b91c..c31d02b9 100644
--- a/src/modules/instance.js
+++ b/src/modules/instance.js
@@ -21,7 +21,7 @@ const defaultState = {
collapseMessageWithSubject: false,
hidePostStats: false,
hideUserStats: false,
- hideFilteredStatuses: true,
+ hideFilteredStatuses: false,
disableChat: false,
scopeCopy: true,
subjectLineBehavior: 'email',