diff options
| author | Bobby <[email protected]> | 2026-03-08 04:00:38 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-03-08 04:00:38 +0530 |
| commit | 44e056c26936b302478fa4e64e3f8e3e6a9a30cf (patch) | |
| tree | 15546500b74b10fcb741727440666f2f5167c174 /controllers | |
| parent | caf265e7050edefa64ecf7e13828ec9636bce867 (diff) | |
| download | dove-44e056c26936b302478fa4e64e3f8e3e6a9a30cf.tar.xz dove-44e056c26936b302478fa4e64e3f8e3e6a9a30cf.zip | |
feat: Enhance mail and domain management UI and functionality
- Updated users page to include a help link with an icon.
- Refactored sidebar navigation to improve organization and added collapsible sections for Domains and Mail.
- Created new pages for managing domains and TLDs, including a detailed description of the Domain Manager.
- Implemented confirmation modals for deleting TLDs with appropriate messaging.
- Added JavaScript functionality for sidebar state management and confirmation modals.
- Introduced new Go handlers for mail index and domain management.
- Added validation functions for DNS labels and email local parts.
Diffstat (limited to 'controllers')
| -rw-r--r-- | controllers/domain/domain.go | 6 | ||||
| -rw-r--r-- | controllers/mail/mail.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/controllers/domain/domain.go b/controllers/domain/domain.go index 1260e3d..5613ade 100644 --- a/controllers/domain/domain.go +++ b/controllers/domain/domain.go @@ -19,7 +19,7 @@ func CreateDomain(context *fiber.Ctx) error { return shortcuts.HandleError(context, serviceError) } - return shortcuts.Redirect(context, "domains.index") + return shortcuts.Redirect(context, "domains.manage") } func CreateTLD(context *fiber.Ctx) error { @@ -33,7 +33,7 @@ func CreateTLD(context *fiber.Ctx) error { return shortcuts.HandleError(context, serviceError) } - return shortcuts.Redirect(context, "domains.index") + return shortcuts.Redirect(context, "domains.tlds") } func DeleteTLD(context *fiber.Ctx) error { @@ -42,5 +42,5 @@ func DeleteTLD(context *fiber.Ctx) error { return shortcuts.HandleError(context, serviceError) } - return shortcuts.Redirect(context, "domains.index") + return shortcuts.Redirect(context, "domains.tlds") }
\ No newline at end of file diff --git a/controllers/mail/mail.go b/controllers/mail/mail.go index 976076b..544a51b 100644 --- a/controllers/mail/mail.go +++ b/controllers/mail/mail.go @@ -19,7 +19,7 @@ func CreateUser(context *fiber.Ctx) error { return shortcuts.HandleError(context, serviceError) } - return shortcuts.Redirect(context, "dashboard.users") + return shortcuts.Redirect(context, "mail.users") } func CreateMailbox(context *fiber.Ctx) error { @@ -33,5 +33,5 @@ func CreateMailbox(context *fiber.Ctx) error { return shortcuts.HandleError(context, serviceError) } - return shortcuts.Redirect(context, "dashboard.mailboxes") + return shortcuts.Redirect(context, "mail.mailboxes") }
\ No newline at end of file |
