fix: open external migration service in current tab
This commit is contained in:
parent
ed4da96ab1
commit
178cd8c392
@ -26,7 +26,7 @@
|
|||||||
class="base-button"
|
class="base-button"
|
||||||
:href="href"
|
:href="href"
|
||||||
rel="noreferrer noopener nofollow"
|
rel="noreferrer noopener nofollow"
|
||||||
target="_blank"
|
:target="openExternalInNewTab ? '_blank' : undefined"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</a>
|
</a>
|
||||||
@ -69,6 +69,7 @@ export interface BaseButtonProps extends /* @vue-ignore */ HTMLAttributes {
|
|||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
to?: RouteLocationRaw
|
to?: RouteLocationRaw
|
||||||
href?: string
|
href?: string
|
||||||
|
openExternalInNewTab?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BaseButtonEmits {
|
export interface BaseButtonEmits {
|
||||||
@ -78,6 +79,7 @@ export interface BaseButtonEmits {
|
|||||||
const {
|
const {
|
||||||
type = BASE_BUTTON_TYPES_MAP.BUTTON,
|
type = BASE_BUTTON_TYPES_MAP.BUTTON,
|
||||||
disabled = false,
|
disabled = false,
|
||||||
|
openExternalInNewTab = true,
|
||||||
} = defineProps<BaseButtonProps>()
|
} = defineProps<BaseButtonProps>()
|
||||||
|
|
||||||
const emit = defineEmits<BaseButtonEmits>()
|
const emit = defineEmits<BaseButtonEmits>()
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
:loading="migrationService.loading"
|
:loading="migrationService.loading"
|
||||||
:disabled="migrationService.loading || undefined"
|
:disabled="migrationService.loading || undefined"
|
||||||
:href="authUrl"
|
:href="authUrl"
|
||||||
|
:open-external-in-new-tab="false"
|
||||||
>
|
>
|
||||||
{{ $t('migrate.getStarted') }}
|
{{ $t('migrate.getStarted') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user