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 () {
|
showPublic () {
|
||||||
return this.originalScope !== 'direct' && this.shouldShow('public')
|
return this.originalScope !== 'direct' && this.shouldShow('public')
|
||||||
},
|
},
|
||||||
|
showLocal () {
|
||||||
|
return this.originalScope !== 'direct' && this.shouldShow('local')
|
||||||
|
},
|
||||||
showUnlisted () {
|
showUnlisted () {
|
||||||
return this.originalScope !== 'direct' && this.shouldShow('unlisted')
|
return this.originalScope !== 'direct' && this.shouldShow('unlisted')
|
||||||
},
|
},
|
||||||
|
@ -47,7 +50,8 @@ const ScopeSelector = {
|
||||||
public: { selected: this.currentScope === 'public' },
|
public: { selected: this.currentScope === 'public' },
|
||||||
unlisted: { selected: this.currentScope === 'unlisted' },
|
unlisted: { selected: this.currentScope === 'unlisted' },
|
||||||
private: { selected: this.currentScope === 'private' },
|
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"
|
class="fa-scale-110 fa-old-padding"
|
||||||
/>
|
/>
|
||||||
</button>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -268,6 +268,8 @@ const Status = {
|
||||||
return 'lock-open'
|
return 'lock-open'
|
||||||
case 'direct':
|
case 'direct':
|
||||||
return 'envelope'
|
return 'envelope'
|
||||||
|
case 'local':
|
||||||
|
return "users"
|
||||||
default:
|
default:
|
||||||
return 'globe'
|
return 'globe'
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,13 +212,15 @@
|
||||||
"scope_notice": {
|
"scope_notice": {
|
||||||
"public": "This post will be visible to everyone",
|
"public": "This post will be visible to everyone",
|
||||||
"private": "This post will be visible to your followers only",
|
"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": {
|
"scope": {
|
||||||
"direct": "Direct - post to mentioned users only",
|
"direct": "Direct - post to mentioned users only",
|
||||||
"private": "Followers-only - post to followers only",
|
"private": "Followers-only - post to followers only",
|
||||||
"public": "Public - post to public timelines",
|
"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": {
|
"registration": {
|
||||||
|
|
Loading…
Reference in a new issue