diff options
author | Jonas Sulzer <jonas@violoncello.ch> | 2019-06-28 09:29:01 +0200 |
---|---|---|
committer | Jonas Sulzer <jonas@violoncello.ch> | 2019-06-28 09:29:01 +0200 |
commit | b532d2d6aa0a988b14ebc39dbe50cb5aabbacc8b (patch) | |
tree | 10c01c25616ee14bc6771d8b0f16c638f7d5f5ed | |
parent | deff21f189ede8a119afbf2c82897369b0ae0a36 (diff) |
👌 IMPROVE: generically replace all keys in notification summary
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
-rw-r--r-- | src/components/TimelineEntry.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/TimelineEntry.vue b/src/components/TimelineEntry.vue index 118d3dc0..66270851 100644 --- a/src/components/TimelineEntry.vue +++ b/src/components/TimelineEntry.vue @@ -69,7 +69,11 @@ export default { return true }, actionSummary() { - return this.item.summary.replace('{account}', this.item.details.account) + for (var key in this.item.details) { + let keyword = '{' + key + '}' + this.item.summary = this.item.summary.replace(keyword, this.item.details[key]) + } + return this.item.summary } }, methods: { |