mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 22:28:13 +00:00
[Templates] load plot templates with require
Load templates with requirejs. https://github.com/nasa/openmctweb/issues/673
This commit is contained in:
@ -27,6 +27,7 @@ define([
|
||||
"./src/policies/PlotViewPolicy",
|
||||
"./src/PlotOptionsController",
|
||||
"text!./res/templates/plot.html",
|
||||
"text!./res/templates/plot-options-browse.html",
|
||||
'legacyRegistry'
|
||||
], function (
|
||||
MCTChart,
|
||||
@ -34,6 +35,7 @@ define([
|
||||
PlotViewPolicy,
|
||||
PlotOptionsController,
|
||||
plotTemplate,
|
||||
plotOptionsBrowseTemplate,
|
||||
legacyRegistry
|
||||
) {
|
||||
"use strict";
|
||||
@ -101,7 +103,7 @@ define([
|
||||
"representations": [
|
||||
{
|
||||
"key": "plot-options-browse",
|
||||
"templateUrl": "templates/plot-options-browse.html"
|
||||
"template": plotOptionsBrowseTemplate
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user