diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2021-08-07 10:28:45 -0400 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-03-07 19:19:29 -0500 |
| commit | ace1f5067c90be2fa0b8da22d39b0e2c88f590fb (patch) | |
| tree | 3c8b8896060ce8eec7762fd5702dcb220232cbef /src/components/thread_tree/thread_tree.js | |
| parent | cd0f6a4f7820b27e3d776e598c842328ad64ab18 (diff) | |
Make status display controlled
Diffstat (limited to 'src/components/thread_tree/thread_tree.js')
| -rw-r--r-- | src/components/thread_tree/thread_tree.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/components/thread_tree/thread_tree.js b/src/components/thread_tree/thread_tree.js index 88b60109..46245bdf 100644 --- a/src/components/thread_tree/thread_tree.js +++ b/src/components/thread_tree/thread_tree.js @@ -28,7 +28,10 @@ const ThreadTree = { threadDisplayStatus: Object, showThreadRecursively: Function, totalReplyCount: Object, - totalReplyDepth: Object + totalReplyDepth: Object, + statusContentProperties: Object, + setStatusContentProperty: Function, + toggleStatusContentProperty: Function }, computed: { reverseLookupTable () { @@ -44,6 +47,9 @@ const ThreadTree = { }, threadShowing () { return this.threadDisplayStatus[this.status.id] === 'showing' + }, + currentProp () { + return this.statusContentProperties[this.status.id] } }, methods: { @@ -55,6 +61,9 @@ const ThreadTree = { showThread () { }, showAllSubthreads () { + }, + toggleCurrentProp (name) { + this.toggleStatusContentProperty(this.status.id, name) } } } |
