mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
Return to page after clikcing login at navbar (#975)
This commit is contained in:
parent
bdcee93f79
commit
3d8ea2e2c9
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
import Button from '~/components/atomic/Button.vue';
|
||||
import IconButton from '~/components/atomic/IconButton.vue';
|
||||
|
@ -53,12 +54,13 @@ export default defineComponent({
|
|||
|
||||
setup() {
|
||||
const config = useConfig();
|
||||
const route = useRoute();
|
||||
const authentication = useAuthentication();
|
||||
const { darkMode } = useDarkMode();
|
||||
const docsUrl = window.WOODPECKER_DOCS;
|
||||
|
||||
function doLogin() {
|
||||
authentication.authenticate();
|
||||
authentication.authenticate(route.fullPath);
|
||||
}
|
||||
|
||||
const version = config.version?.startsWith('next') ? 'next' : config.version;
|
||||
|
|
Loading…
Reference in a new issue