kopia lustrzana https://github.com/nextcloud/social
Add default to post type
Signed-off-by: Julius Härtl <jus@bitgrid.net>pull/16/head
rodzic
be61c6f98b
commit
14af2aa6f3
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Ładowanie…
Reference in New Issue