Merge pull request #305 from h3poteto/iss-303

closes #303 Show the application from which the status was posted
This commit is contained in:
AkiraFukushima 2018-05-15 08:05:57 +09:00 committed by GitHub
commit fb1e85ee62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -67,6 +67,9 @@
</el-button>
</popper>
</div>
<div class="application">
via {{ application(message) }}
</div>
</div>
<div class="clearfix"></div>
<div class="fill-line"></div>
@ -241,6 +244,14 @@ export default {
type: 'error'
})
})
},
application (message) {
let msg = this.originalMessage(message)
if (msg.application !== undefined &&
msg.application !== null) {
return msg.application.name
}
return 'Web'
}
}
}
@ -346,6 +357,8 @@ function findLink (target) {
}
.tool-box {
float: left;
button {
margin: 0 8px;
padding: 0;
@ -396,6 +409,11 @@ function findLink (target) {
}
}
.application {
float: right;
color: #909399;
}
.reply:hover,
.reblog:hover,
.favourite:hover {