Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4425

Add new Module methods for getting service tabs depending on service

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      Add two new Module methods

          public function getAdminServiceTabs($service)
          {
              Loader::loadModels($this, ['Packages']);
              $package = $this->Packages->get($service->package_id);
              if ($package) {
                  return $this->getAdminTabs($package);
              }
      
              return [];
          }
      
          public function getClientServiceTabs($service)
          {
              Loader::loadModels($this, ['Packages']);
              $package = $this->Packages->get($service->package_id);
              if ($package) {
                  return $this->getClientTabs($package);
              }
      
              return [];
          }
      

      This will allow the display of tabs to be determined base on client, config options, or other service related data.

      Then we should update the tab displays to use the new methods.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              abdy Abdy Franco
              Reporter:
              jonathan Jonathan Reissmueller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                27/Jan/22

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 52 minutes
                52m

                  Agile