Skip to content

Commit

Permalink
Revert "Add Events view" (#1604)
Browse files Browse the repository at this point in the history
* Revert "Add Events view"

* Revert "Add Events view"
  • Loading branch information
sgratch authored Jun 16, 2022
1 parent 8e8ba80 commit 39972d3
Show file tree
Hide file tree
Showing 27 changed files with 253 additions and 1,083 deletions.
57 changes: 1 addition & 56 deletions src/actions/userMessages.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import {
ADD_LAST_VM_EVENTS,
ADD_USER_MESSAGE,
ADD_VM_EVENTS,
AUTO_ACKNOWLEDGE,
CLEAR_USER_MSGS,
DISMISS_EVENT,
DISMISS_USER_MSG,
GET_ALL_EVENTS,
GET_VM_EVENTS,
SAVE_EVENT_FILTERS,
SET_EVENT_SORT,
SET_USERMSG_NOTIFIED,
SET_SERVER_MESSAGES,
GET_ALL_EVENTS,
} from '_/constants'

export function addUserMessage ({ message, messageDescriptor, type = '' }) {
Expand Down Expand Up @@ -82,53 +77,3 @@ export function setServerMessages ({ messages }) {
export function getAllEvents () {
return { type: GET_ALL_EVENTS }
}

export function addVmEvents ({ events = [], vmId }) {
return {
type: ADD_VM_EVENTS,
payload: {
events,
vmId,
},
}
}

export function addLastVmEvents ({ events = [], vmId }) {
return {
type: ADD_LAST_VM_EVENTS,
payload: {
events,
vmId,
},
}
}

export function getVmEvents ({ vmId, vmName, newestEventId = 0, maxItems = 0 }) {
return {
type: GET_VM_EVENTS,
payload: {
vmId,
vmName,
newestEventId,
maxItems,
},
}
}

export function setEventSort ({ sort }) {
return {
type: SET_EVENT_SORT,
payload: {
sort,
},
}
}

export function saveEventFilters ({ filters }) {
return {
type: SAVE_EVENT_FILTERS,
payload: {
filters,
},
}
}
87 changes: 0 additions & 87 deletions src/components/Events/EventFilters.js

This file was deleted.

44 changes: 0 additions & 44 deletions src/components/Events/EventSort.js

This file was deleted.

18 changes: 0 additions & 18 deletions src/components/Events/EventStatus.js

This file was deleted.

Loading

0 comments on commit 39972d3

Please sign in to comment.