Multiple Cockpit Plugins are defined by an array

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: webapp-react
    • None

      Note: This is a refactoring.

      Previously, multiple plugins could be created using named exports. Because we do not use the names of the exports and need kind of a hack to iterate over them, we should export an array as default.

      A single Plugin does not have to be wrapped in an array.

      // Is:
      export {pluginA, pluginB};
      
      // Should be
      export default [pluginA, pluginB];
      

            Assignee:
            Unassigned
            Reporter:
            Martin Stamm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: