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

+41
View File
@@ -0,0 +1,41 @@
"use strict";
import m from "mithril";
import * as overlay from "./overlay";
const component = {
view: vnode => {
const text = vnode.attrs.text;
const element = vnode.attrs.element || "span";
return m(
element,
{
class: "long-text",
title: text,
onclick: () => {
overlay.open(() => {
return m(
"textarea.long-text",
{
cols: 80,
rows: 24,
readonly: "",
oncreate: vnode2 => {
setTimeout(() => {
vnode2.dom.focus();
vnode2.dom.select();
}, 50);
}
},
text
);
});
}
},
text
);
}
};
export default component;