4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-13 12:46:41 +00:00
AzuraCast/frontend/vue/components/Account/ApiKeyNewKey.vue
2022-12-17 19:07:15 -06:00

37 lines
1.0 KiB
Vue

<template>
<h3 class="card-subtitle">{{ $gettext('New Key Generated') }}</h3>
<p class="card-text">
<b>{{ $gettext('Important: copy the key below before continuing!') }}</b>
{{ $gettext('You will not be able to retrieve it again.') }}
</p>
<p class="card-text">
{{ $gettext('Your full API key is below:') }}
</p>
<div class="px-2">
<code id="api_key">{{ newKey }}</code>
<div class="buttons pt-2">
<copy-to-clipboard-button :text="newKey"></copy-to-clipboard-button>
</div>
</div>
<p class="card-text pt-3">
{{
$gettext('When making API calls, you can pass this value in the "X-API-Key" header to authenticate as yourself.')
}}
</p>
<p class="card-text">
{{ $gettext('You can only perform the actions your user account is allowed to perform.') }}
</p>
</template>
<script setup>
import CopyToClipboardButton from "~/components/Common/CopyToClipboardButton";
const props = defineProps({
newKey: String
});
</script>