Move update notifier dot into settings button (#4334)

This commit is contained in:
Lukas 2024-11-07 23:40:24 +01:00 committed by GitHub
parent bf5405b6cc
commit 2ce82d295a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,13 +19,18 @@
}}</a>
</div>
<div class="flex ml-auto -m-1.5 items-center space-x-2">
<div v-if="user?.admin" class="relative">
<IconButton class="navbar-icon" :title="$t('settings')" :to="{ name: 'admin-settings' }" icon="settings" />
<IconButton
v-if="user?.admin"
class="navbar-icon relative"
:title="$t('settings')"
:to="{ name: 'admin-settings' }"
>
<Icon name="settings" />
<div
v-if="version?.needsUpdate"
class="absolute top-2 right-2 bg-int-wp-state-error-100 rounded-full w-3 h-3"
/>
</div>
</IconButton>
<ActivePipelines v-if="user" class="navbar-icon" />
<IconButton v-if="user" :to="{ name: 'user' }" :title="$t('user.settings.settings')" class="navbar-icon !p-1.5">
@ -41,6 +46,7 @@ import { useRoute } from 'vue-router';
import WoodpeckerLogo from '~/assets/logo.svg?component';
import Button from '~/components/atomic/Button.vue';
import Icon from '~/components/atomic/Icon.vue';
import IconButton from '~/components/atomic/IconButton.vue';
import useAuthentication from '~/compositions/useAuthentication';
import useConfig from '~/compositions/useConfig';