mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-25 22:10:47 +00:00
Fixes #704
This commit is contained in:
parent
2c812cca75
commit
9216ff8efc
2 changed files with 13 additions and 4 deletions
|
@ -135,7 +135,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a :class="[visibility=='private'?'dropdown-item active':'dropdown-item']" href="#" data-id="private" data-title="Followers Only" v-on:click.prevent="visibility = 'unlisted'">
|
<a :class="[visibility=='unlisted'?'dropdown-item active':'dropdown-item']" href="#" data-id="private" data-title="Unlisted" v-on:click.prevent="visibility = 'unlisted'">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="d-none d-block-sm col-sm-2 px-0 text-center">
|
<div class="d-none d-block-sm col-sm-2 px-0 text-center">
|
||||||
<i class="fas fa-lock"></i>
|
<i class="fas fa-lock"></i>
|
||||||
|
@ -301,6 +301,9 @@ export default {
|
||||||
fetchProfile() {
|
fetchProfile() {
|
||||||
axios.get('/api/v1/accounts/verify_credentials').then(res => {
|
axios.get('/api/v1/accounts/verify_credentials').then(res => {
|
||||||
this.profile = res.data;
|
this.profile = res.data;
|
||||||
|
if(res.data.locked == true) {
|
||||||
|
this.visibility = 'private';
|
||||||
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
});
|
});
|
||||||
|
|
|
@ -34,9 +34,15 @@
|
||||||
<label class="font-weight-bold text-muted small">Visibility</label>
|
<label class="font-weight-bold text-muted small">Visibility</label>
|
||||||
<div class="switch switch-sm">
|
<div class="switch switch-sm">
|
||||||
<select class="form-control" name="visibility">
|
<select class="form-control" name="visibility">
|
||||||
<option value="public" selected="">Public</option>
|
@if(Auth::user()->profile->is_private)
|
||||||
<option value="unlisted">Unlisted (hidden from public timelines)</option>
|
<option value="public">Public</option>
|
||||||
<option value="private">Followers Only</option>
|
<option value="unlisted">Unlisted (hidden from public timelines)</option>
|
||||||
|
<option value="private" selected="">Followers Only</option>
|
||||||
|
@else
|
||||||
|
<option value="public" selected="">Public</option>
|
||||||
|
<option value="unlisted">Unlisted (hidden from public timelines)</option>
|
||||||
|
<option value="private">Followers Only</option>
|
||||||
|
@endif
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<small class="form-text text-muted">
|
<small class="form-text text-muted">
|
||||||
|
|
Loading…
Reference in a new issue