mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 05:06:37 +00:00
38 lines
992 B
Vue
38 lines
992 B
Vue
<template>
|
|
<section class="card" role="region">
|
|
<div class="card-header bg-primary-dark">
|
|
<h3 class="card-title">
|
|
<translate key="lang_hdr_profile_edit">Edit Station Profile</translate>
|
|
</h3>
|
|
</div>
|
|
|
|
<admin-stations-form v-bind="$props" ref="form" :is-edit-mode="true" :edit-url="editUrl"
|
|
@submitted="onSubmitted"></admin-stations-form>
|
|
</section>
|
|
</template>
|
|
|
|
<script>
|
|
import AdminStationsForm, {StationFormProps} from "~/components/Admin/Stations/StationForm";
|
|
|
|
export default {
|
|
name: 'StationsProfileEdit',
|
|
components: {AdminStationsForm},
|
|
mixins: [StationFormProps],
|
|
props: {
|
|
editUrl: String,
|
|
continueUrl: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
},
|
|
mounted() {
|
|
this.$refs.form.reset();
|
|
},
|
|
methods: {
|
|
onSubmitted() {
|
|
window.location.href = this.continueUrl;
|
|
},
|
|
}
|
|
}
|
|
</script>
|