Show fault message and detail in faults page

This commit is contained in:
Zaid Abdulla committed 2018-12-27 01:21:18 -08:00
1 parent 44471d5f5e
commit 4e378d4dff
6 files changed
+105 -12

No files matched your search

+15 -1
View File
@@ -1,6 +1,7 @@
"use strict";
let codeMirror;
let yaml;
function loadCodeMirror() {
if (codeMirror) return Promise.resolve();
@@ -19,4 +20,17 @@ function loadCodeMirror() {
});
}
export { loadCodeMirror, codeMirror };
function loadYaml() {
if (yaml) return Promise.resolve();
return new Promise((resolve, reject) => {
import(/* webpackChunkName: "yaml" */ "yaml")
.then(module => {
yaml = module;
resolve();
})
.catch(reject);
});
}
export { loadCodeMirror, codeMirror, loadYaml, yaml };