How to use the @harbor/ui.getChanges function in @harbor/ui

To help you get started, we’ve selected a few @harbor/ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github goharbor / harbor / src / portal / src / app / config / auth / config-auth.component.ts View on Github external
public getChanges() {
        let allChanges = getChanges(this.originalConfig, this.currentConfig);
        let changes = {};
        for (let prop in allChanges) {
            if (prop.startsWith('ldap_')
                || prop.startsWith('uaa_')
                || prop.startsWith('oidc_')
                || prop === 'auth_mode'
                || prop === 'project_creattion_restriction'
                || prop === 'self_registration'
                || prop.startsWith('http_')
            ) {
                changes[prop] = allChanges[prop];
            }
        }
        return changes;
    }
github goharbor / harbor / src / portal / src / app / config / email / config-email.component.ts View on Github external
public getChanges() {
        let allChanges = getChanges(this.originalConfig, this.currentConfig);
        let changes = {};
        for (let prop in allChanges) {
            if (prop.startsWith('email_')) {
                changes[prop] = allChanges[prop];
            }
        }
        return changes;
    }