diff --git a/config/routes/api_station.php b/config/routes/api_station.php index 353b7c58c..12e549e7d 100644 --- a/config/routes/api_station.php +++ b/config/routes/api_station.php @@ -42,7 +42,7 @@ return static function (RouteCollectorProxy $group) { ) ->add(new Middleware\Permissions(Acl::STATION_BROADCASTING, true)); - $group->get('/profile', Controller\Api\Stations\ProfileController::class) + $group->get('/profile', Controller\Api\Stations\ProfileAction::class) ->setName('api:stations:profile') ->add(new Middleware\Permissions(Acl::STATION_VIEW, true)); @@ -57,6 +57,10 @@ return static function (RouteCollectorProxy $group) { Controller\Api\Stations\ProfileEditController::class . ':putProfileAction' )->add(new Middleware\Permissions(Acl::STATION_PROFILE, true)); + $group->get('/quota[/{type}]', Controller\Api\Stations\GetQuotaAction::class) + ->setName('api:stations:quota') + ->add(new Middleware\Permissions(Acl::STATION_PROFILE, true)); + $group->get('/schedule', Controller\Api\Stations\ScheduleAction::class) ->setName('api:stations:schedule'); diff --git a/frontend/vue/components/Admin/Stations/Form/AdminForm.vue b/frontend/vue/components/Admin/Stations/Form/AdminForm.vue index 4c220c5ca..df2c01940 100644 --- a/frontend/vue/components/Admin/Stations/Form/AdminForm.vue +++ b/frontend/vue/components/Admin/Stations/Form/AdminForm.vue @@ -28,8 +28,8 @@ - + @@ -39,8 +39,8 @@ - + @@ -50,8 +50,8 @@ - + diff --git a/frontend/vue/components/Admin/Stations/StationForm.vue b/frontend/vue/components/Admin/Stations/StationForm.vue index c00b491e1..1adb1ca24 100644 --- a/frontend/vue/components/Admin/Stations/StationForm.vue +++ b/frontend/vue/components/Admin/Stations/StationForm.vue @@ -168,14 +168,14 @@ export default { if (this.showAdminTab) { const adminValidations = { form: { - media_storage_location_id: {}, - recordings_storage_location_id: {}, - podcasts_storage_location_id: {}, + media_storage_location: {}, + recordings_storage_location: {}, + podcasts_storage_location: {}, is_enabled: {}, }, adminTab: [ - 'form.media_storage_location_id', 'form.recordings_storage_location_id', - 'form.podcasts_storage_location_id', 'form.is_enabled' + 'form.media_storage_location', 'form.recordings_storage_location', + 'form.podcasts_storage_location', 'form.is_enabled' ] }; @@ -251,7 +251,6 @@ export default { sc_user_id: '', source_pw: '', admin_pw: '', - }, backend_type: BACKEND_LIQUIDSOAP, backend_config: { @@ -298,9 +297,9 @@ export default { if (this.showAdminTab) { const adminForm = { - media_storage_location_id: '', - recordings_storage_location_id: '', - podcasts_storage_location_id: '', + media_storage_location: '', + recordings_storage_location: '', + podcasts_storage_location: '', is_enabled: true, }; _.merge(form, adminForm); diff --git a/frontend/vue/components/Stations/Media.vue b/frontend/vue/components/Stations/Media.vue index 3bc7a527a..f76d6c355 100644 --- a/frontend/vue/components/Stations/Media.vue +++ b/frontend/vue/components/Stations/Media.vue @@ -9,9 +9,10 @@ Music Files -
-