提交 56fb08bd 编写于 作者: J Jackson Kearl 提交者: Ramya Rao

Fix bug causing recommendation ignore message not going away (#53189)

上级 47bd6891
......@@ -401,9 +401,9 @@ export class ExtensionEditor extends BaseEditor {
this.extensionTipsService.onRecommendationChange(change => {
if (change.extensionId.toLowerCase() === extension.id.toLowerCase()) {
if (change.isRecommended) {
removeClass(this.header, 'recommendation-ignored');
const extRecommendations = this.extensionTipsService.getAllRecommendationsWithReason();
if (extRecommendations[extension.id.toLowerCase()]) {
removeClass(this.header, 'recommendation-ignored');
addClass(this.header, 'recommended');
this.recommendationText.textContent = extRecommendations[extension.id.toLowerCase()].reasonText;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册