Merge pull request #305 from h3poteto/iss-303
closes #303 Show the application from which the status was posted
This commit is contained in:
commit
fb1e85ee62
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue