Files
grafana-zabbix/dist/panel-triggers/migrations.js
2017-12-03 09:40:57 +03:00

29 lines
605 B
JavaScript

"use strict";
System.register([], function (_export, _context) {
"use strict";
function migratePanelSchema(panel) {
var schemaVersion = getSchemaVersion(panel);
switch (schemaVersion) {
case 1:
panel.datasources = [panel.datasource];
panel.targets[panel.datasources[0]] = panel.triggers;
break;
}
return panel;
}
_export("migratePanelSchema", migratePanelSchema);
function getSchemaVersion(panel) {
return panel.schemaVersion || 1;
}
return {
setters: [],
execute: function () {}
};
});
//# sourceMappingURL=migrations.js.map