mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Remove unused method.
This commit is contained in:
@@ -54,7 +54,6 @@ class Notifications extends Component {
|
|||||||
this.onSort = this.onSort.bind(this);
|
this.onSort = this.onSort.bind(this);
|
||||||
this.onSetPage = this.onSetPage.bind(this);
|
this.onSetPage = this.onSetPage.bind(this);
|
||||||
this.onSelectAll = this.onSelectAll.bind(this);
|
this.onSelectAll = this.onSelectAll.bind(this);
|
||||||
this.onSelect = this.onSelect.bind(this);
|
|
||||||
this.toggleNotification = this.toggleNotification.bind(this);
|
this.toggleNotification = this.toggleNotification.bind(this);
|
||||||
this.updateUrl = this.updateUrl.bind(this);
|
this.updateUrl = this.updateUrl.bind(this);
|
||||||
this.postToError = this.postToError.bind(this);
|
this.postToError = this.postToError.bind(this);
|
||||||
@@ -113,18 +112,6 @@ class Notifications extends Component {
|
|||||||
this.setState({ selected });
|
this.setState({ selected });
|
||||||
};
|
};
|
||||||
|
|
||||||
onSelect = id => {
|
|
||||||
const { selected } = this.state;
|
|
||||||
|
|
||||||
const isSelected = selected.includes(id);
|
|
||||||
|
|
||||||
if (isSelected) {
|
|
||||||
this.setState({ selected: selected.filter(s => s !== id) });
|
|
||||||
} else {
|
|
||||||
this.setState({ selected: selected.concat(id) });
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
toggleNotification = (id, isCurrentlyOn, status) => {
|
toggleNotification = (id, isCurrentlyOn, status) => {
|
||||||
if (status === 'success') {
|
if (status === 'success') {
|
||||||
this.postToSuccess(id, isCurrentlyOn);
|
this.postToSuccess(id, isCurrentlyOn);
|
||||||
|
|||||||
Reference in New Issue
Block a user