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

          jonathan Jonathan Reissmueller created issue -
          jonathan Jonathan Reissmueller made changes -
          Field Original Value New Value
          Rank Ranked higher
          jonathan Jonathan Reissmueller made changes -
          Sprint 5.3.0 Sprint 1 [ 138 ]
          jonathan Jonathan Reissmueller made changes -
          Rank Ranked higher
          jonathan Jonathan Reissmueller made changes -
          Story Points 3
          jonathan Jonathan Reissmueller made changes -
          Link This issue blocks CORE-4426 [ CORE-4426 ]
          abdy Abdy Franco made changes -
          Assignee Abdy Franco [ abdy ]
          abdy Abdy Franco made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          abdy Abdy Franco made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 52 minutes [ 3120 ]
          Worklog Id 15258 [ 15258 ]
          abdy Abdy Franco made changes -
          Status In Progress [ 3 ] In Review [ 5 ]
          Resolution Fixed [ 1 ]
          jonathan Jonathan Reissmueller made changes -
          Status In Review [ 5 ] Closed [ 6 ]

            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