Client - display if oauth client does not exist when authorizing

This commit is contained in:
Sam 2022-06-12 16:26:51 +02:00
parent 22c8105ea6
commit 1f26b69cba

View File

@ -1,5 +1,6 @@
<template> <template>
<div id="authorize-oauth2-app" v-if="client.client_id"> <div id="authorize-oauth2-app">
<div v-if="client.client_id">
<h1 id="authorize-oauth2-title"> <h1 id="authorize-oauth2-title">
<i18n-t keypath="oauth2.AUTHORIZE_APP"> <i18n-t keypath="oauth2.AUTHORIZE_APP">
<router-link :to="{ name: 'UserApp', params: { id: client.id } }"> <router-link :to="{ name: 'UserApp', params: { id: client.id } }">
@ -29,6 +30,13 @@
</div> </div>
</div> </div>
</div> </div>
<div v-else>
<p class="no-app">{{ $t('oauth2.NO_APP') }}</p>
<button @click="$router.push('/profile/apps')">
{{ $t('buttons.BACK') }}
</button>
</div>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">