mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-13 18:45:49 +05:00
added heading forum
This commit is contained in:
parent
89d3a7285a
commit
ba89e00ecf
@ -50,7 +50,7 @@ async function parseFile(file, type) {
|
||||
const reader = new FileReader();
|
||||
const blob = await _file.slice(_offset, length + _offset);
|
||||
reader.onload = readEventHandler;
|
||||
await reader.readAsText(blob);
|
||||
await reader.readAsDataURL(blob);
|
||||
};
|
||||
|
||||
// read with the first block
|
||||
|
||||
@ -3,7 +3,17 @@ const rs = require('rswebui');
|
||||
const util = require('forums/forums_util');
|
||||
|
||||
const ThreadView = () => {
|
||||
return {
|
||||
|
||||
let thread = {};
|
||||
return {
|
||||
oninit: (v) => {
|
||||
if (
|
||||
util.Data.ParentThreads[v.attrs.forumId] &&
|
||||
util.Data.ParentThreads[v.attrs.forumId][v.attrs.msgId]
|
||||
) {
|
||||
thread = util.Data.ParentThreads[v.attrs.forumId][v.attrs.msgId];
|
||||
}
|
||||
},
|
||||
view: (v) =>
|
||||
m('.widget', { key: v.attrs.msgId }, [
|
||||
m(
|
||||
@ -17,6 +27,7 @@ const ThreadView = () => {
|
||||
},
|
||||
m('i.fas.fa-arrow-left')
|
||||
),
|
||||
m('h3', thread.mMsgName),
|
||||
]),
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user