client/posts: support content aware post flow option

This commit is contained in:
Shyam Sunder
2020-09-27 15:11:34 -04:00
parent afe4c5c847
commit eaa6107a6c
6 changed files with 29 additions and 1 deletions

View File

@ -120,6 +120,7 @@ class PostListController {
bulkEdit: {
tags: this._bulkEditTags,
},
postFlow: settings.get().postFlow,
});
const view = new PostsPageView(pageCtx);
view.addEventListener("tag", (e) => this._evtTag(e));

View File

@ -18,6 +18,7 @@ const defaultSettings = {
postsPerPage: 42,
tagUnderscoresAsSpaces: false,
darkTheme: false,
postFlow: false,
};
class Settings extends events.EventTarget {

View File

@ -45,6 +45,7 @@ class SettingsView extends events.EventTarget {
tagUnderscoresAsSpaces: this._find("underscores-as-spaces")
.checked,
darkTheme: this._find("dark-theme").checked,
postFlow: this._find("post-flow").checked,
},
})
);