Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onSubmit(values) {
const { resourceName, connection, target } = values;
this.dispatch(
closeModal(),
createNamespaceResource(resourceName, connection, target)
);
}
onSubmit({ poolName, selectedHosts }) {
this.dispatch(
createHostsPool(poolName, selectedHosts),
closeModal()
);
}
onSubmit() {
this.dispatch(
closeModal(),
deleteResource(this.poolName)
);
}
onSubmit(values) {
this.dispatch(closeModal());
this.dispatch(addBucketTier(
this.bucketName, values.policyType,
values.selectedResources
));
}
onSubmit(values) {
const { serverSecret, serverHostname } = this;
const { primaryDNS, secondaryDNS } = values;
this.dispatch(
updateServerDNSSettings(
serverSecret,
serverHostname,
primaryDNS,
secondaryDNS
),
closeModal()
);
}
onSubmit() {
const { bucketName, tierName, policy } = this;
action$.next(updateBucketResiliencyPolicy(bucketName, tierName, policy));
action$.next(closeModal(2));
}
onSubmit(values) {
action$.next(
updateServerAddress(
this.secret,
values.newAddress,
this.hostname
)
);
action$.next(closeModal());
}
onSubmit({ serviceState, nodesState }) {
const action = serviceState ?
toggleHostNodes(this.host, nodesState) :
openDisableHostStorageWarningModal(this.host, this.isLastService);
action$.next(closeModal());
action$.next(action);
}
onSubmit(values) {
const { target, useSpillover } = values;
const resource = useSpillover ? target : null;
action$.next(updateBucketSpilloverPolicy(this.bucketName, resource));
action$.next(closeModal());
}
onSubmit() {
action$.next(enterMaintenanceMode(this.durationInMin()));
action$.next(closeModal());
}
}