shorten sha in permalink previews
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
Родитель
7e3b5049c3
Коммит
0278a1ed2e
|
@ -135,9 +135,9 @@ export default {
|
|||
},
|
||||
shortRef() {
|
||||
if (this.richObject.ref.original_ref === this.richObject.ref.sha) {
|
||||
return this.richObject.ref.original_ref
|
||||
return this.richObject.ref.sha.slice(0, 7)
|
||||
}
|
||||
return this.richObject.ref.original_ref + ' ' + this.richObject.ref.sha
|
||||
return this.richObject.ref.original_ref + ' ' + this.richObject.ref.sha.slice(0, 7)
|
||||
},
|
||||
textContent() {
|
||||
let content = ''
|
||||
|
|
Загрузка…
Ссылка в новой задаче