Show fault message and detail in faults page
This commit is contained in:
1 parent
44471d5f5e
commit
4e378d4dff
6 files changed
+105
-12
No files matched your search
@@ -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 };
|
||||
Reference in new issue
Block a user