summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-07 20:08:42 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-07 20:08:42 +0900
commitb6a330928db0cf62ac0cfe484cd5e148edb9ce12 (patch)
treebc19cb560b035b23301c7eab06e520ebdc57fc84 /src/client/app/common/scripts
parentResolve #2843 (diff)
downloadsharkey-b6a330928db0cf62ac0cfe484cd5e148edb9ce12.tar.gz
sharkey-b6a330928db0cf62ac0cfe484cd5e148edb9ce12.tar.bz2
sharkey-b6a330928db0cf62ac0cfe484cd5e148edb9ce12.zip
投稿の削除イベントを受け取るように
Diffstat (limited to 'src/client/app/common/scripts')
-rw-r--r--src/client/app/common/scripts/note-subscriber.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/app/common/scripts/note-subscriber.ts b/src/client/app/common/scripts/note-subscriber.ts
index 5fc82942d5..c41897e70f 100644
--- a/src/client/app/common/scripts/note-subscriber.ts
+++ b/src/client/app/common/scripts/note-subscriber.ts
@@ -97,6 +97,17 @@ export default prop => ({
this.$_ns_target.poll.choices.find(c => c.id === choice).votes++;
break;
}
+
+ case 'deleted': {
+ Vue.set(this.$_ns_target, 'deletedAt', body.deletedAt);
+ this.$_ns_target.text = null;
+ this.$_ns_target.tags = [];
+ this.$_ns_target.fileIds = [];
+ this.$_ns_target.poll = null;
+ this.$_ns_target.geo = null;
+ this.$_ns_target.cw = null;
+ break;
+ }
}
this.$emit(`update:${prop}`, this.$_ns_note_);