Files
vault/ui/lib/core/addon/helpers/replication-mode-description.js
Noelle Daley f08c91dfa5 [Embroider] fix imports to unblock Embroider adoption (#26296)
* chore: use ember-cli-babel for TS compliation instead of ember-cli-typescript

* chore: fix import paths to be ES module compatible

* chore(test): fix setupControlGroup helper import

* chore: fix engine definitions and swagger-ui imports

* update lockfile

* chore: remove babel inline-json-import

---------

Co-authored-by: Matthew Irish <matthew@hashicorp.com>
2024-04-22 12:03:44 -07:00

19 lines
749 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { helper as buildHelper } from '@ember/component/helper';
const REPLICATION_MODE_DESCRIPTIONS = {
dr: 'Disaster Recovery Replication is designed to protect against catastrophic failure of entire clusters. Secondaries do not forward service requests until they are elected and become a new primary.',
performance:
'Performance Replication scales workloads horizontally across clusters to make requests faster. Local secondaries handle read requests but forward writes to the primary to be handled.',
};
function replicationModeDescription([mode]) {
return REPLICATION_MODE_DESCRIPTIONS[mode];
}
export default buildHelper(replicationModeDescription);