Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Jan 29, 2024
1 parent ef85893 commit d19cb74
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace App\Filament\Resources\UserResource\RelationManagers;

use Filament\Forms\Components\TextInput;
use Filament\Pages\Actions\ViewAction;
use Filament\Resources\Form;
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Resources\Table;
Expand Down Expand Up @@ -63,6 +64,7 @@ public static function table(Table $table): Table
->headerActions([
])
->actions([
ViewAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static function table(Table $table): Table
'pending' => 'warning',
'approved' => 'success',
'rejected' => 'danger',
default => 'primary',
}),
])
->filters([
Expand Down
3 changes: 2 additions & 1 deletion app/Http/Controllers/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ protected function projectList(Request $request, string $view): Response

public function show(Project $project)
{
if (! $project->isApproved() && ! auth()->check()) {
if (! $project->isPublished() && ! auth()->check()) {
abort(403);
}


return Inertia::render('Public/Projects/Show', [
'project' => new ShowProjectResource($project),
]);
Expand Down
27 changes: 0 additions & 27 deletions resources/js/Pages/AdminOng/Organizations/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -352,33 +352,6 @@
</Field>

<!-- Edit organizaton address -->
<Field :label="$t('organization_address_county_label')" :hasPendingChanges="changes.includes('counties')" alt>
<template #value>
{{ originalOrganization.county_names.join(', ') }}
</template>

<template #action>
<EditModal
@action="editField('counties')"
@cancel="
organization.counties = originalOrganization.counties;
"
class="flex justify-end col-span-1"
>
<div class="flex flex-col gap-4 lg:flex-row">
<Select
:label="$t('counties_label')"
:options="counties"
type="object"
v-model="organization.counties"
v-if="!organization.is_national"
:error="errors.counties"
multiple
/>
</div>
</EditModal>
</template>
</Field>
<Field :label="$t('organization_address_street_address_label')" :hasPendingChanges="changes.includes('address')" alt>
<template #value>
{{ organization.address }},
Expand Down

0 comments on commit d19cb74

Please sign in to comment.