Removing one item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cabaret
    Member
    • Nov 2020
    • 36

    Removing one item

    Hello!
    Is there anyway to remove "Last Time Seen" from the menu above?

    Thx : )
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi,
    The easiest way is to comment (place a code between /* and */)the provided below part of a code in the /client/src/views/site/navbar.js file:
    Code:
    if (!this.getConfig().get('actionHistoryDisabled')) {
        list.push({
            divider: true
        });
        list.push({
            action: 'showLastViewed',
            link: '#LastViewed',
            label: this.getLanguage().translate('LastViewed', 'scopeNamesPlural')
        });
    }
    After this change, you have to clear cache (Administration -> Clear Cache).

    Note, you have to find out how to achieve these changes by customizing it in the /custom directory, cause the way provided above is not safety. It means that this change can be rewritten by any system upgrade action.

    Comment


    • Cabaret
      Cabaret commented
      Editing a comment
      Thank you so much ! : )
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #3
    hello,
    Maximus :
    if (!this.getConfig().get('actionHistoryDisabled')) {

    so i think just add in config.php

    actionHistoryDisabled => true
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #4
      Hi item.
      You are right. But the request was how to remove this option from the list, not to disable the system action logger.

      Comment


      • item
        item commented
        Editing a comment
        Hi Maximus, my english is poor .. very poor.. so i try and use google translate..
        Thanks for your help for community, i learn many with your post
    Working...