Skip to content

Commit

Permalink
revert(admin): 删除保存并创建另一个按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaiyuxin103 committed Jan 18, 2025
1 parent c1af7fb commit 5cf75ef
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Filament/Resources/AboutResource/Pages/CreateAbout.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateAbout extends CreateRecord
{
protected static string $resource = AboutResource::class;

protected static bool $canCreateAnother = false;

protected function getHeaderActions(): array
{
return [];
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/AdminResource/Pages/CreateAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateAdmin extends CreateRecord
{
protected static string $resource = AdminResource::class;

protected static bool $canCreateAnother = false;

protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateCategory extends CreateRecord
{
protected static string $resource = CategoryResource::class;

protected static bool $canCreateAnother = false;

protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateDiscussion extends CreateRecord
{
protected static string $resource = DiscussionResource::class;

protected static bool $canCreateAnother = false;

protected function getHeaderActions(): array
{
return [];
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/LabelResource/Pages/CreateLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateLabel extends CreateRecord
{
protected static string $resource = LabelResource::class;

protected static bool $canCreateAnother = false;

protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateLanding extends CreateRecord
{
protected static string $resource = LandingResource::class;

protected static bool $canCreateAnother = false;

protected function getHeaderActions(): array
{
return [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreatePrivacy extends CreateRecord
{
protected static string $resource = PrivacyResource::class;

protected static bool $canCreateAnother = false;

protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class CreateRole extends CreateRecord

protected static string $resource = RoleResource::class;

protected static bool $canCreateAnother = false;

protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl();
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/TermResource/Pages/CreateTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateTerm extends CreateRecord
{
protected static string $resource = TermResource::class;

protected static bool $canCreateAnother = false;

protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl();
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Resources/UserResource/Pages/CreateUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateUser extends CreateRecord
{
protected static string $resource = UserResource::class;

protected static bool $canCreateAnother = false;

protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateVerificationCode extends CreateRecord
{
protected static string $resource = VerificationCodeResource::class;

protected static bool $canCreateAnother = false;

protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl();
Expand Down

0 comments on commit 5cf75ef

Please sign in to comment.