visualbuilder / email-templates

Email Template Editor for Filament
GNU General Public License v3.0
72 stars 19 forks source link

Email Template Resource Not Showing #15

Closed sakthimanikandan845 closed 1 month ago

sakthimanikandan845 commented 1 month ago

In the left side navigation, only the "Email Template Theme" resource is showing, but the "Email Template" resource is not visible. I'm using this plugin in the Admin Panel provider, but it's still not working.

murugans07 commented 1 month ago

In the left side navigation, only the "Email Template Theme" resource is showing, but the "Email Template" resource is not visible. I'm using this plugin in the Admin Panel provider, but it's still not working.

same issue bro

sakthimanikandan845 commented 1 month ago

I found an issue in the EmailTemplateResource file.

In the current resource file, both functions are incorrectly calling themes.label, but they should be calling templates.label. Here’s the incorrect code:

public static function getModelLabel(): string { return config('filament-email-templates.navigation.themes.label'); }

public static function getPluralModelLabel(): string { return config('filament-email-templates.navigation.themes.label'); }

The corrected version should be:

public static function getModelLabel(): string { return config('filament-email-templates.navigation.templates.label'); }

public static function getPluralModelLabel(): string { return config('filament-email-templates.navigation.templates.label'); }

Please make sure to update these functions accordingly.

cannycookie commented 1 month ago

This is fixed, apologies, i missed someone had changed this on a pull request. Please run composer update and it should work

Regards