mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
delete unused method
This commit is contained in:
@@ -12,10 +12,7 @@ import DataListToolbar from '../DataListToolbar';
|
|||||||
import NotificationListItem from './NotificationListItem';
|
import NotificationListItem from './NotificationListItem';
|
||||||
import Pagination from '../Pagination';
|
import Pagination from '../Pagination';
|
||||||
|
|
||||||
import {
|
import { parseQueryString } from '../../qs';
|
||||||
encodeQueryString,
|
|
||||||
parseQueryString,
|
|
||||||
} from '../../qs';
|
|
||||||
|
|
||||||
class Notifications extends Component {
|
class Notifications extends Component {
|
||||||
columns = [
|
columns = [
|
||||||
@@ -55,7 +52,6 @@ class Notifications extends Component {
|
|||||||
this.handleSetPage = this.handleSetPage.bind(this);
|
this.handleSetPage = this.handleSetPage.bind(this);
|
||||||
this.handleSelectAll = this.handleSelectAll.bind(this);
|
this.handleSelectAll = this.handleSelectAll.bind(this);
|
||||||
this.toggleNotification = this.toggleNotification.bind(this);
|
this.toggleNotification = this.toggleNotification.bind(this);
|
||||||
this.updateUrl = this.updateUrl.bind(this);
|
|
||||||
this.createError = this.createError.bind(this);
|
this.createError = this.createError.bind(this);
|
||||||
this.createSuccess = this.createSuccess.bind(this);
|
this.createSuccess = this.createSuccess.bind(this);
|
||||||
this.readNotifications = this.readNotifications.bind(this);
|
this.readNotifications = this.readNotifications.bind(this);
|
||||||
@@ -120,16 +116,6 @@ class Notifications extends Component {
|
|||||||
this.handleSort(sortedColumnKey, sortOrder);
|
this.handleSort(sortedColumnKey, sortOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateUrl (queryParams) {
|
|
||||||
const { history, location, match } = this.props;
|
|
||||||
const pathname = match.url;
|
|
||||||
const search = `?${encodeQueryString(queryParams)}`;
|
|
||||||
|
|
||||||
if (search !== location.search) {
|
|
||||||
history.replace({ pathname, search });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async createError (id, isCurrentlyOn) {
|
async createError (id, isCurrentlyOn) {
|
||||||
const { onCreateError, match } = this.props;
|
const { onCreateError, match } = this.props;
|
||||||
const postParams = { id };
|
const postParams = { id };
|
||||||
|
|||||||
Reference in New Issue
Block a user