Fix the code-owners plugin
This code was broken during the TS/Lit migration.
Release-Notes: skip
Change-Id: Iead845bb621f86864b940f04609cb638055c0480
diff --git a/web/code-owners-model-mixin.ts b/web/code-owners-model-mixin.ts
index 786da48..dbbb2f6 100644
--- a/web/code-owners-model-mixin.ts
+++ b/web/code-owners-model-mixin.ts
@@ -127,6 +127,7 @@
for (const s of this.subscriptions) {
s.unsubscribe();
}
+ this.subscriptions = [];
this.model_ = model;
if (!model) return;
this.subscriptions.push(
@@ -146,7 +147,7 @@
);
this.subscriptions.push(
model.state$.subscribe(s => {
- this.userRole = s.userRole;
+ this.status = s.status;
})
);
this.subscriptions.push(
diff --git a/web/owner-status-column.ts b/web/owner-status-column.ts
index 4b6f44d..e426ce0 100644
--- a/web/owner-status-column.ts
+++ b/web/owner-status-column.ts
@@ -165,17 +165,17 @@
width: 3em;
text-align: center;
}
- iron-icon {
+ gr-icon {
padding: var(--spacing-xs) 0px;
}
- :host([owner-status='approved']) iron-icon {
+ :host([owner-status='approved']) gr-icon {
color: var(--positive-green-text-color);
}
- :host([owner-status='pending']) iron-icon {
+ :host([owner-status='pending']) gr-icon {
color: #ffa62f;
}
- :host([owner-status='missing']) iron-icon,
- :host([owner-status='error']) iron-icon {
+ :host([owner-status='missing']) gr-icon,
+ :host([owner-status='error']) gr-icon {
color: var(--negative-red-text-color);
}
`,