-export class ControlComponent {
-
- settings = {
- hideSubHeader: true,
- actions: {
- columnTitle: 'Actions',
- add: false,
- edit: false,
- delete: false,
- custom: [
- { name: 'view', title: '<i class="material-icons">visibility</i>', },
- { name: 'undeploy', title: '<i class="material-icons red-close">close</i>', },
- ],
- position: 'right'
-
- },
- columns: {
- xapp: {
- title: 'xApp Name',
- type: 'string',
- },
- name: {
- title: 'Instance Name',
- type: 'string',
- },
- status: {
- title: 'Status',
- type: 'string',
- },
- ip: {
- title: 'IP',
- type: 'string',
- },
- port: {
- title: 'Port',
- type: 'integer',
- },
- txMessages: {
- title: 'txMessages',
- type: 'array',
- },
- rxMessages: {
- title: 'rxMessages',
- type: 'array',
- },
- },
- };
-
- source: LocalDataSource = new LocalDataSource();
-
- constructor(
- private service: ControlService,
- private router: Router,
- private confirmDialogService: ConfirmDialogService,
- private notification: NotificationService) {
- this.service.getxAppInstances((instances) => { this.source.load(instances); });
- }