mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
lint fixup
This commit is contained in:
@@ -20,7 +20,7 @@ class AddNotificationItem extends Component {
|
||||
} = this.props;
|
||||
|
||||
this.props.onNotificationSelect({ implementation });
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
@@ -46,7 +46,7 @@ class AddNotificationModalContentConnector extends Component {
|
||||
onNotificationSelect = ({ implementation, name }) => {
|
||||
this.props.selectNotificationSchema({ implementation, presetName: name });
|
||||
this.props.onModalClose({ notificationSelected: true });
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
@@ -17,7 +17,7 @@ class AddNotificationPresetMenuItem extends Component {
|
||||
name,
|
||||
implementation
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
@@ -33,7 +33,7 @@ class EditNotificationModalConnector extends Component {
|
||||
this.props.dispatchCancelTestNotification();
|
||||
this.props.dispatchCancelSaveNotification();
|
||||
this.props.onModalClose();
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
@@ -42,19 +42,19 @@ class EditNotificationModalContentConnector extends Component {
|
||||
|
||||
onInputChange = ({ name, value }) => {
|
||||
this.props.setNotificationValue({ name, value });
|
||||
}
|
||||
};
|
||||
|
||||
onFieldChange = ({ name, value }) => {
|
||||
this.props.setNotificationFieldValue({ name, value });
|
||||
}
|
||||
};
|
||||
|
||||
onSavePress = () => {
|
||||
this.props.saveNotification({ id: this.props.id });
|
||||
}
|
||||
};
|
||||
|
||||
onTestPress = () => {
|
||||
this.props.testNotification({ id: this.props.id });
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
@@ -27,26 +27,26 @@ class Notification extends Component {
|
||||
|
||||
onEditNotificationPress = () => {
|
||||
this.setState({ isEditNotificationModalOpen: true });
|
||||
}
|
||||
};
|
||||
|
||||
onEditNotificationModalClose = () => {
|
||||
this.setState({ isEditNotificationModalOpen: false });
|
||||
}
|
||||
};
|
||||
|
||||
onDeleteNotificationPress = () => {
|
||||
this.setState({
|
||||
isEditNotificationModalOpen: false,
|
||||
isDeleteNotificationModalOpen: true
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
onDeleteNotificationModalClose= () => {
|
||||
this.setState({ isDeleteNotificationModalOpen: false });
|
||||
}
|
||||
};
|
||||
|
||||
onConfirmDeleteNotification = () => {
|
||||
this.props.onConfirmDeleteNotification(this.props.id);
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
@@ -30,18 +30,18 @@ class Notifications extends Component {
|
||||
|
||||
onAddNotificationPress = () => {
|
||||
this.setState({ isAddNotificationModalOpen: true });
|
||||
}
|
||||
};
|
||||
|
||||
onAddNotificationModalClose = ({ notificationSelected = false } = {}) => {
|
||||
this.setState({
|
||||
isAddNotificationModalOpen: false,
|
||||
isEditNotificationModalOpen: notificationSelected
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
onEditNotificationModalClose = () => {
|
||||
this.setState({ isEditNotificationModalOpen: false });
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
@@ -33,7 +33,7 @@ class NotificationsConnector extends Component {
|
||||
|
||||
onConfirmDeleteNotification = (id) => {
|
||||
this.props.deleteNotification({ id });
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
Reference in New Issue
Block a user