Add default to post type

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/16/head
Julius Härtl 2018-11-28 21:30:27 +01:00
rodzic be61c6f98b
commit 14af2aa6f3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4C614C6ED2CDE6DF
4 zmienionych plików z 10 dodań i 8 usunięć

Wyświetl plik

@ -293,7 +293,7 @@ export default {
},
data() {
return {
type: localStorage.getItem('social.lastPostType'),
type: localStorage.getItem('social.lastPostType') || 'followers',
post: '',
canType: true,
search: '',
@ -425,7 +425,7 @@ export default {
switchType(type) {
this.type = type
this.menuOpened = false
localStorage.setItem('social.lastPostType', type);
localStorage.setItem('social.lastPostType', type)
},
getPostData() {
let element = this.$refs.composerInput.cloneNode(true)

Wyświetl plik

@ -22,8 +22,9 @@
<template>
<div class="social__wrapper">
<div v-if="results.length < 1" :class="{'icon-loading': loading}" id="emptycontent" class="">
<div class="icon-search"></div>
<div v-if="results.length < 1" id="emptycontent" :class="{'icon-loading': loading}"
class="">
<div class="icon-search" />
<h2>{{ t('social', 'No accounts found') }}</h2>
<p>No accounts found for {{ term }}</p>
</div>

Wyświetl plik

@ -51,8 +51,8 @@ export default {
message = message.linkify({
formatHref: {
email: function(href) {
return OC.generateUrl('/apps/social/@' + (href.indexOf('mailto:') == 0 ? href.substring(7) : href))
},
return OC.generateUrl('/apps/social/@' + (href.indexOf('mailto:') === 0 ? href.substring(7) : href))
}
}
})
message = this.$twemoji.parse(message)

Wyświetl plik

@ -31,7 +31,8 @@
<router-link v-if="item.local" :to="{ name: 'profile', params: { account: item.account }}">
<span class="post-author">{{ item.preferredUsername }}</span>
</router-link>
<a v-else href="{{ item.id }}" target="_blank" rel="noreferrer">{{ item.preferredUsername }}</a>
<a v-else href="{{ item.id }}" target="_blank"
rel="noreferrer">{{ item.preferredUsername }}</a>
<p class="user-description">{{ item.account }}</p>
</div>
<button v-if="item.following" class="icon-checkmark-color">Following</button>