Giter Club home page Giter Club logo

Comments (6)

kaitlinnewson avatar kaitlinnewson commented on August 16, 2024

I'm able to reproduce this issue, but one thing I'd like to clarify is if the user should be able to delete these templates in the UI. In our docs, we say:

Default templates are described in emailTemplates.xml. These templates are installed when the application is installed or a new locale is added.

These templates can not be edited or deleted. [...]

Many of the templates I'm testing with are in emailTemplates.xml. Should the "Remove" button appear for these?

Screenshot 2024-06-21 at 2 33 12 PM

from pkp-lib.

kaitlinnewson avatar kaitlinnewson commented on August 16, 2024

Ready for review @asmecher:

from pkp-lib.

jardakotesovec avatar jardakotesovec commented on August 16, 2024

Would be also interested to know the intention whether there should be different behaviour between templates that are coming from emailTemplates.xml and the ones that are added by the user.

I noticed there also should be option to reset template (manageEmails.tpl) - for some templates:

					<pkp-button
						v-if="item.key === currentMailable.emailTemplateKey && item.id"
						:is-warnable="true"
						@click="confirmResetTemplate(item)"
					>
						{translate key="common.reset"}
					</pkp-button>

My first guess would be that the ones coming from emailTemplates.xml should be possible to edit and reset, but not remove. And the ones from user would be possible to edit and remove.

Maybe @NateWr remembers? :-)

from pkp-lib.

jardakotesovec avatar jardakotesovec commented on August 16, 2024

@Vitaliy-1 Or maybe you would know?

from pkp-lib.

asmecher avatar asmecher commented on August 16, 2024

(Meanwhile, I did merge the PR above. I agree that it's overspecific for the email template keys we use.)

from pkp-lib.

Vitaliy-1 avatar Vitaliy-1 commented on August 16, 2024

My first guess would be that the ones coming from emailTemplates.xml should be possible to edit and reset, but not remove.

Yes, those are default templates, it's impossible to modify them directly. They are stored in the email_templates_default_data table. When user changes template through the UI or adds a new, it's recorded into email_templates

from pkp-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.