Okay
  Public Ticket #2451612
Hiding employee tabs
Closed

Comments

  •  3
    Leonard Zakoor started the conversation

    Hi, 

    In the backend for an employee, I need to hide the employee details and services tabs. Is there anyway to do this? 


    Also, are there any kind of hooks, filters or actions available for a more customized use?

  • [deleted] replied

    Hello Leonard, 

    There isn't a possibility of hiding the details tab for employees only in the back-end of Amelia, unfortunately. And the services tab will be hidden if you disable the option Configure their services in Amelia -> Settings -> Roles settings -> Employee. 

    Unfortunately there are no actions and filters in Amelia at the moment. There are some JS hooks, that are triggered depending on the view:

    window.beforeAddToCalendarLoaded()
    window.beforeBookingLoaded()
    window.beforeSearchLoaded()
    window.beforeSearchFiltered()
    window.afterSearchFiltered()
    window.beforeConfirmedBooking()
    window.beforeCatalogLoaded()
    window.afterSelectCatalogCategory(object_category)
    window.beforeCatalogCategoryLoaded(object_category)
    window.beforeCatalogServiceLoaded(object_category, object_service)
    window.afterSearchActivateService(object_appointment, object_serviceActive)
    window.afterSearchGoToSecondStep(object_appointment, object_serviceActive)
    window.afterBookingSelectDateAndTime(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.afterBookingSelectService(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.beforeConfirmBookingLoaded(object_appointment, object_service, object_provider, object_location)
    window.afterConfirmBooking(object_appointment, object_service, object_provider, object_location)

     

    If you have any further questions feel free to ask.