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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue