Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
teodosii committed May 30, 2024
1 parent cc19c2a commit e8b9b39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions grafana-plugin/src/components/Policy/EscalationPolicy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class _EscalationPolicy extends React.Component<EscalationPolicyProps, any> {
return (
<Timeline.Item
key={id}
contentClassName={cx(styles.root)}
contentClassName={styles.root}
number={number}
textColor={isDisabled ? itemTextColor : undefined}
backgroundClassName={backgroundClassName}
Expand All @@ -91,7 +91,7 @@ class _EscalationPolicy extends React.Component<EscalationPolicyProps, any> {
reactStringReplace(escalationOption.display_name, /\{\{([^}]+)\}\}/g, this.replacePlaceholder)}
{this.renderNote()}
{is_final || isDisabled ? null : (
<WithPermissionControlTooltip className={cx(styles.delete)} userAction={UserActions.EscalationChainsWrite}>
<WithPermissionControlTooltip className={styles.delete} userAction={UserActions.EscalationChainsWrite}>
<IconButton
name="trash-alt"
className={cx(styles.delete, styles.control)}
Expand Down Expand Up @@ -299,7 +299,7 @@ class _EscalationPolicy extends React.Component<EscalationPolicyProps, any> {
<Input
placeholder="Count"
disabled={isDisabled}
className={cx(styles.control)}
className={styles.control}
value={num_alerts_in_window}
onChange={this.getOnInputChangeHandler('num_alerts_in_window')}
ref={(node) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ import { makeRequest } from 'network/network';
import { move } from 'state/helpers';
import { RootStore } from 'state/rootStore';

interface SilenceOption {
value: string;
sec_value: string;
display_name: string;
}

export class EscalationPolicyStore extends BaseStore {
@observable.shallow
items: { [id: string]: EscalationPolicy } = {};
Expand Down

0 comments on commit e8b9b39

Please sign in to comment.