import { Component, OnInit } from '@angular/core';
import { CredentialsComponent } from '../tabs/credentials/credentials.component';
import { NotificationsComponent } from '../tabs/notifications/notifications.component';
import { DefaultsComponent } from '../tabs/defaults/defaults.component';
import { VolumeSizeIncrementsComponent } from '../tabs/volume-size-increments/volume-size-increments.component';
import { DiscoveredServicesComponent } from '../tabs/discovered-services/discovered-services.component';
import { IObjectController } from '@objects-view/interfaces/object-controller';
import { StaticObjectController } from '@objects-view/static-object-controller';
import {
  OpenstackAdvancedSettingsComponent
} from '../tabs/openstack-advanced-settings/openstack-advanced-settings.component';
import { RegionSettingsComponent } from '../tabs/region-settings/region-settings.component';

@Component({
  selector: 'app-settings-openstack',
  templateUrl: './settings-openstack.component.html',
  styleUrls: ['./settings-openstack.component.scss']
})
export class SettingsOpenstackComponent implements OnInit {
public objectController: IObjectController = new StaticObjectController({
    header: {
      title: {
        text: $localize`OpenStack settings`,
      }
    },
    tabs: [
      {
        tabName: $localize`Credentials`,
        tabIdentifier: 'credentials',
        component: CredentialsComponent,
      },
      {
        tabName: $localize`Notifications`,
        tabIdentifier: 'notifications',
        component: NotificationsComponent,
      },
      {
        tabName: $localize`Defaults`,
        tabIdentifier: 'defaults',
        component: DefaultsComponent,
      },
      {
        tabName: $localize`Regions`,
        tabIdentifier: 'region-settings',
        component: RegionSettingsComponent,
      },
      {
        tabName: $localize`Volume size increments`,
        tabIdentifier: 'volume-size-increments',
        component: VolumeSizeIncrementsComponent,
      },
      {
        tabName: $localize`Discovered services`,
        tabIdentifier: 'discovered-services',
        component: DiscoveredServicesComponent,
      },
      {
        tabName: $localize`Advanced`,
        tabIdentifier: 'advanced',
        component: OpenstackAdvancedSettingsComponent,
      }
    ],
  });

  constructor() {
  }

  ngOnInit() {
  }
}
