Overwrite master.js

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • luuchu
    replied
    Yes, thanks you

    Leave a comment:


  • yuri
    replied
    You should look at code. I don't remember. I will either need to look into code to answer your question.

    Leave a comment:


  • luuchu
    replied
    Hi yurikuzn,

    I don't need it for any particular scope. I need to custom notifications feature. To do this i have edited badge.js (client/src/views/notifications/badge.js) and i want to move it to custom. So i want overwrite master.js

    How can i do this? Also can you please explain more how can i define to override place where master.js is called in frontend controller, example for Account entity?

    Thank you!

    Leave a comment:


  • yuri
    replied
    Hi

    If you need it only for a particular scope (entity type) you can create custom frontend controller (inherited from Record controller) and there override place where master.js is called.

    Leave a comment:


  • luuchu
    started a topic Overwrite master.js

    Overwrite master.js

    Hi,

    I'm trying to overwrite client\src\view\site\master.js. I find with keyword "Site.Master" and i see it in two files: pre-load.json and espo.min.js and it's only working if i modify espo.min.js.
    So how can i overwrite master.js without edit espo.min.js?

    ​Thank you!
Working...