Add EVENTS to constants
This commit is contained in:
@@ -2,27 +2,28 @@
|
||||
|
||||
import EventlogList from '../EventlogList.vue';
|
||||
import AppsModel from '../../models/AppsModel.js';
|
||||
import { EVENTS } from '../../constants.js';
|
||||
|
||||
const appsModel = AppsModel.create();
|
||||
|
||||
const props = defineProps([ 'app' ]);
|
||||
|
||||
const availableActions = [
|
||||
{ id: 'app.backup', label: 'Backup started' },
|
||||
{ id: 'app.backup.finish', label: 'Backup finished' },
|
||||
{ id: 'app.configure', label: 'Reconfigured' },
|
||||
{ id: 'app.install', label: 'Installed' },
|
||||
{ id: 'app.restore', label: 'Restored' },
|
||||
{ id: 'app.uninstall', label: 'Uninstalled' },
|
||||
{ id: 'app.update', label: 'Update started' },
|
||||
{ id: 'app.update.finish', label: 'Update finished' },
|
||||
{ id: 'app.login', label: 'Log in' },
|
||||
{ id: 'app.oom', label: 'Out of memory' },
|
||||
{ id: 'app.down', label: 'Down' },
|
||||
{ id: 'app.up', label: 'Up' },
|
||||
{ id: 'app.start', label: 'Started' },
|
||||
{ id: 'app.stop', label: 'Stopped' },
|
||||
{ id: 'app.restart', label: 'Restarted' },
|
||||
{ id: EVENTS.APP_BACKUP, label: 'Backup started' },
|
||||
{ id: EVENTS.APP_BACKUP_FINISH, label: 'Backup finished' },
|
||||
{ id: EVENTS.APP_CONFIGURE, label: 'Reconfigured' },
|
||||
{ id: EVENTS.APP_INSTALL, label: 'Installed' },
|
||||
{ id: EVENTS.APP_RESTORE, label: 'Restored' },
|
||||
{ id: EVENTS.APP_UNINSTALL, label: 'Uninstalled' },
|
||||
{ id: EVENTS.APP_UPDATE, label: 'Update started' },
|
||||
{ id: EVENTS.APP_UPDATE_FINISH, label: 'Update finished' },
|
||||
{ id: EVENTS.APP_LOGIN, label: 'Log in' },
|
||||
{ id: EVENTS.APP_OOM, label: 'Out of memory' },
|
||||
{ id: EVENTS.APP_DOWN, label: 'Down' },
|
||||
{ id: EVENTS.APP_UP, label: 'Up' },
|
||||
{ id: EVENTS.APP_START, label: 'Started' },
|
||||
{ id: EVENTS.APP_STOP, label: 'Stopped' },
|
||||
{ id: EVENTS.APP_RESTART, label: 'Restarted' },
|
||||
];
|
||||
|
||||
async function fetchPage(filter, page, perPage) {
|
||||
|
||||
Reference in New Issue
Block a user