forked from AkkomaGang/akkoma-fe
add stuff
This commit is contained in:
parent
214d85189c
commit
d49434a799
4 changed files with 24 additions and 3 deletions
|
@ -33,6 +33,9 @@ const ScopeSelector = {
|
|||
showPublic () {
|
||||
return this.originalScope !== 'direct' && this.shouldShow('public')
|
||||
},
|
||||
showLocal () {
|
||||
return this.originalScope !== 'direct' && this.shouldShow('local')
|
||||
},
|
||||
showUnlisted () {
|
||||
return this.originalScope !== 'direct' && this.shouldShow('unlisted')
|
||||
},
|
||||
|
@ -47,7 +50,8 @@ const ScopeSelector = {
|
|||
public: { selected: this.currentScope === 'public' },
|
||||
unlisted: { selected: this.currentScope === 'unlisted' },
|
||||
private: { selected: this.currentScope === 'private' },
|
||||
direct: { selected: this.currentScope === 'direct' }
|
||||
direct: { selected: this.currentScope === 'direct' },
|
||||
local: { selected: this.currentScope === 'local' }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -55,6 +55,19 @@
|
|||
class="fa-scale-110 fa-old-padding"
|
||||
/>
|
||||
</button>
|
||||
<button
|
||||
v-if="showLocal"
|
||||
class="button-unstyled scope"
|
||||
:class="css.local"
|
||||
:title="$t('post_status.scope.local')"
|
||||
type="button"
|
||||
@click="changeVis('local')"
|
||||
>
|
||||
<FAIcon
|
||||
icon="users"
|
||||
class="fa-scale-110 fa-old-padding"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -268,6 +268,8 @@ const Status = {
|
|||
return 'lock-open'
|
||||
case 'direct':
|
||||
return 'envelope'
|
||||
case 'local':
|
||||
return "users"
|
||||
default:
|
||||
return 'globe'
|
||||
}
|
||||
|
|
|
@ -212,13 +212,15 @@
|
|||
"scope_notice": {
|
||||
"public": "This post will be visible to everyone",
|
||||
"private": "This post will be visible to your followers only",
|
||||
"unlisted": "This post will not be visible in Public Timeline and The Whole Known Network"
|
||||
"unlisted": "This post will not be visible in Public Timeline and The Whole Known Network",
|
||||
"local": "This post won't be visible outside of IHBA"
|
||||
},
|
||||
"scope": {
|
||||
"direct": "Direct - post to mentioned users only",
|
||||
"private": "Followers-only - post to followers only",
|
||||
"public": "Public - post to public timelines",
|
||||
"unlisted": "Unlisted - do not post to public timelines"
|
||||
"unlisted": "Unlisted - do not post to public timelines",
|
||||
"local": "Local - do not federate this post"
|
||||
}
|
||||
},
|
||||
"registration": {
|
||||
|
|
Loading…
Reference in a new issue