-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Create Database btn on admin side #721
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't check for Database limit like it did on Pterodactyl (don't know if its intentional)
databaseHost can be not suitable (dbHost is set to an other node then the one the server has) for this server and it will still create
Also would be nice if the first databaseHost it could find would be selected by default
Delete button doesn't ask for a confirmation
Its wonky and we found a filament bug as i tried to use |
SDhoudl be able to use default like we did on the CreateServer page
|
app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php
Outdated
Show resolved
Hide resolved
app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php
Outdated
Show resolved
Hide resolved
TextColumn::make('username')->icon('tabler-user'), | ||
TextColumn::make('remote'), | ||
TextColumn::make('database') | ||
->hidden(fn () => !auth()->user()->can('viewList database')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there a nicer way to hide the whole table instead of hiding every single column?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it's a relation manager. Not a tab, so it's rendered as it's own table. Just like allocations on the edit node/server page
Co-authored-by: Boy132 <[email protected]>
…atabasesRelationManager.php Co-authored-by: Boy132 <[email protected]>
…atabasesRelationManager.php Co-authored-by: Boy132 <[email protected]>
Adds a Create Database button to edit server page to allow admins to create databases on the users behalf, checks for database hosts and if the server has database feature allocations.