mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-23 17:53:23 +02:00
Move update notifier dot into settings button (#4334)
This commit is contained in:
parent
bf5405b6cc
commit
2ce82d295a
@ -19,13 +19,18 @@
|
|||||||
}}</a>
|
}}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex ml-auto -m-1.5 items-center space-x-2">
|
<div class="flex ml-auto -m-1.5 items-center space-x-2">
|
||||||
<div v-if="user?.admin" class="relative">
|
<IconButton
|
||||||
<IconButton class="navbar-icon" :title="$t('settings')" :to="{ name: 'admin-settings' }" icon="settings" />
|
v-if="user?.admin"
|
||||||
|
class="navbar-icon relative"
|
||||||
|
:title="$t('settings')"
|
||||||
|
:to="{ name: 'admin-settings' }"
|
||||||
|
>
|
||||||
|
<Icon name="settings" />
|
||||||
<div
|
<div
|
||||||
v-if="version?.needsUpdate"
|
v-if="version?.needsUpdate"
|
||||||
class="absolute top-2 right-2 bg-int-wp-state-error-100 rounded-full w-3 h-3"
|
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" />
|
<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">
|
<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 WoodpeckerLogo from '~/assets/logo.svg?component';
|
||||||
import Button from '~/components/atomic/Button.vue';
|
import Button from '~/components/atomic/Button.vue';
|
||||||
|
import Icon from '~/components/atomic/Icon.vue';
|
||||||
import IconButton from '~/components/atomic/IconButton.vue';
|
import IconButton from '~/components/atomic/IconButton.vue';
|
||||||
import useAuthentication from '~/compositions/useAuthentication';
|
import useAuthentication from '~/compositions/useAuthentication';
|
||||||
import useConfig from '~/compositions/useConfig';
|
import useConfig from '~/compositions/useConfig';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user