Commit 5a571f47 by Torkel Ödegaard

tech: react mobx progress

parent 4c1a67c3
...@@ -62,7 +62,7 @@ function AlertRuleItem(rule) { ...@@ -62,7 +62,7 @@ function AlertRuleItem(rule) {
let ruleUrl = `dashboard/${rule.dashboardUri}?panelId=${rule.panelId}&fullscreen&edit&tab=alert`; let ruleUrl = `dashboard/${rule.dashboardUri}?panelId=${rule.panelId}&fullscreen&edit&tab=alert`;
return ( return (
<li className="card-item-wrapper"> <li className="card-item-wrapper" key={rule.id}>
<div className="card-item card-item--alert"> <div className="card-item card-item--alert">
<div className="card-item-header"> <div className="card-item-header">
<div className="card-item-type"> <div className="card-item-type">
......
...@@ -12,7 +12,7 @@ export const AlertRule = types.model('AlertRule', { ...@@ -12,7 +12,7 @@ export const AlertRule = types.model('AlertRule', {
stateIcon: types.string, stateIcon: types.string,
stateClass: types.string, stateClass: types.string,
stateAge: types.string, stateAge: types.string,
info: types.string, info: types.optional(types.string, ''),
dashboardUri: types.string, dashboardUri: types.string,
}); });
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
} }
// Alert List // Alert List
.alert-list { .alert-list {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
...@@ -94,7 +93,7 @@ ...@@ -94,7 +93,7 @@
.panel-has-alert { .panel-has-alert {
.panel-alert-icon:before { .panel-alert-icon:before {
content: "\e611"; content: '\e611';
position: relative; position: relative;
top: 1px; top: 1px;
left: -3px; left: -3px;
...@@ -108,12 +107,12 @@ ...@@ -108,12 +107,12 @@
.panel-alert-icon:before { .panel-alert-icon:before {
color: $critical; color: $critical;
content: "\e610"; content: '\e610';
} }
} }
&--alerting::after { &--alerting::after {
content: ""; content: '';
position: absolute; position: absolute;
top: 0; top: 0;
z-index: -1; z-index: -1;
...@@ -121,14 +120,13 @@ ...@@ -121,14 +120,13 @@
height: 100%; height: 100%;
box-shadow: 0 0 10px rgba($critical, 1); box-shadow: 0 0 10px rgba($critical, 1);
opacity: 0; opacity: 0;
animation: alerting-panel 1.6s cubic-bezier(1, 0.1, 0.73, 1) 0s infinite animation: alerting-panel 1.6s cubic-bezier(1, 0.1, 0.73, 1) 0s infinite alternate;
alternate;
} }
&--ok { &--ok {
.panel-alert-icon:before { .panel-alert-icon:before {
color: $online; color: $online;
content: "\e611"; content: '\e611';
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment