Skip to content

Commit

Permalink
Translations for rules import button, route fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee0z committed Jan 13, 2024
1 parent 866960f commit 1f6a0fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lang/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@
"Please, rate that city": "Oceń miasto",

"You can also login by:": "Możesz również zalogować się przez:",

"Regulations": "Zasady"
"Rules import started.": "Import zasad uruchomiony.",
"Run rules import": "Uruchom import zasad"
}
2 changes: 2 additions & 0 deletions resources/js/Pages/City/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ function toggleRegulations() {
console.log(regulationsOpen)
}
console.log(props.city)
function fetchRegulations() {
axios.get(`/api/rules/{city.country.name}/{city.name}`)
.then(response => {
Expand Down
6 changes: 3 additions & 3 deletions resources/js/Pages/Importers/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function runImporters() {
}
function runRules() {
router.post('/rules/import-rules/false', [])
toast.success(__('Rules started.'))
router.post('/import-rules/false', [])
toast.success(__('Rules import started.'))
}
</script>

Expand All @@ -37,7 +37,7 @@ function runRules() {
{{ __('Run importers') }}
</button>
<button class="my-5 w-fit rounded bg-blumilk-500 px-5 py-3 text-sm font-medium text-white shadow-md hover:bg-blumilk-400 md:py-2" @click="runRules">
{{ __('Run rules') }}
{{ __('Run rules import') }}
</button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
Route::delete("/delete-city-without-assigned-country/{city}", [CityWithoutAssignedCountryController::class, "destroy"]);
Route::post("/delete-all-cities-without-assigned-country", [CityWithoutAssignedCountryController::class, "destroyAll"]);

Route::post("/import-rules/{force}", [\App\Services\OpenAIService::class, "importRules"]);
Route::post("/import-rules/{force}", [\App\Services\OpenAIService::class, "importRulesForAllCities"]);
});
});

Expand Down

0 comments on commit 1f6a0fd

Please sign in to comment.