Newer
Older
<template>
<main class="main pusher" v-title="labels.title">
<div class="ui vertical stripe segment">
<section class="ui text container">
<router-link :to="{name: 'settings'}">
<translate translate-context="Content/Applications/Link">Back to settings</translate>
</router-link>
<h2 class="ui header">
<translate translate-context="Content/Applications/Title">Create a new application</translate>
</h2>
<application-form
Eliot Berriot
committed
:defaults="defaults"
@created="$router.push({name: 'settings.applications.edit', params: {id: $event.client_id}})" />
</section>
</div>
</main>
</template>
<script>
import ApplicationForm from "@/components/auth/ApplicationForm"
export default {
Eliot Berriot
committed
props: ['name', 'redirect_uris', 'scopes'],
components: {
ApplicationForm
},
data() {
return {
application: null,
isLoading: false,
Eliot Berriot
committed
defaults: {
name: this.name,
redirect_uris: this.redirect_uris,
scopes: this.scopes,
}