@harbor/ui
Version:
Harbor shared UI components based on Clarity and Angular6
56 lines (55 loc) • 1.97 kB
TypeScript
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
import { NgForm } from '@angular/forms';
import { Configuration } from '../config';
import { IServiceConfig } from '../../service.config';
import { ErrorHandler } from '../../error-handler/index';
import { ConfirmationDialogComponent } from '../../confirmation-dialog/confirmation-dialog.component';
import { ConfirmationAcknowledgement } from '../../confirmation-dialog/confirmation-state-message';
import { ConfigurationService } from '../../service/index';
export declare class SystemSettingsComponent implements OnChanges {
private configInfo;
private configService;
private errorHandler;
config: Configuration;
onGoing: boolean;
private originalConfig;
downloadLink: string;
configChange: EventEmitter<Configuration>;
readOnlyChange: EventEmitter<boolean>;
reloadSystemConfig: EventEmitter<any>;
systemSettings: Configuration;
showSubTitle: boolean;
hasAdminRole: boolean;
hasCAFile: boolean;
withAdmiral: boolean;
systemSettingsForm: NgForm;
confirmationDlg: ConfirmationDialogComponent;
readonly editable: boolean;
isValid(): boolean;
hasChanges(): boolean;
getChanges(): {};
ngOnChanges(changes: SimpleChanges): void;
getSystemChanges(allChanges: any): {};
setRepoReadOnlyValue($event: any): void;
disabled(prop: any): boolean;
readonly canDownloadCert: boolean;
/**
*
* Save the changed values
*
* @memberOf ConfigurationComponent
*/
save(): void;
retrieveConfig(): void;
reset(changes: any): void;
confirmCancel(ack: ConfirmationAcknowledgement): void;
readonly inProgress: boolean;
/**
*
* Discard current changes if have and reset
*
* @memberOf ConfigurationComponent
*/
cancel(): void;
constructor(configInfo: IServiceConfig, configService: ConfigurationService, errorHandler: ErrorHandler);
}