mirror of
https://github.com/nkanaev/yarr.git
synced 2026-07-15 19:16:32 +00:00
frontend: show logout button only if user/pass is set
This commit is contained in:
@@ -90,6 +90,7 @@ export default {
|
||||
},
|
||||
'refreshRate': s.refresh_rate,
|
||||
'authenticated': app.authenticated,
|
||||
'requiresAuth': app.requiresAuth,
|
||||
'feed_errors': {},
|
||||
|
||||
'refreshRateOptions': [
|
||||
|
||||
@@ -117,8 +117,8 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dropdown-divider" v-if="authenticated"></div>
|
||||
<button class="dropdown-item" v-if="authenticated" @click="logout()">
|
||||
<div class="dropdown-divider" v-if="requiresAuth"></div>
|
||||
<button class="dropdown-item" v-if="requiresAuth" @click="logout()">
|
||||
<v-icon class="mr-1" name="log-out" />
|
||||
{{ $t('log_out') }}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user