提交 ef59b96b 编写于 作者: J Joao Moreno

remove rating count

fixes #13180
上级 7d14e26d
...@@ -133,6 +133,9 @@ export class RatingsWidget implements IDisposable { ...@@ -133,6 +133,9 @@ export class RatingsWidget implements IDisposable {
if (this.options.small) { if (this.options.small) {
append(this.container, $('span.full.star')); append(this.container, $('span.full.star'));
const count = append(this.container, $('span.count'));
count.textContent = String(rating);
} else { } else {
for (let i = 1; i <= 5; i++) { for (let i = 1; i <= 5; i++) {
if (rating >= i) { if (rating >= i) {
...@@ -144,9 +147,6 @@ export class RatingsWidget implements IDisposable { ...@@ -144,9 +147,6 @@ export class RatingsWidget implements IDisposable {
} }
} }
} }
const count = append(this.container, $('span.count'));
count.textContent = String(this.options.small ? rating : this.extension.ratingCount);
} }
dispose(): void { dispose(): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册