{{#if (eq this.data.mode "secondary")}}
{{/if}}
{{#if (eq this.data.mode "primary")}}
{{#if @canEnablePrimary}}
{{else}}
The token you are using is not authorized to enable primary replication.
{{/if}}
{{else}}
{{#if @canEnableSecondary}}
{{#if (and (eq @replicationMode "dr") this.performanceReplicationEnabled (has-feature "Performance Replication"))}}
{{#if this.showExplanation}}
When running as a DR Secondary Vault is read only. For this reason, we don't allow other Replication modes to
operate at the same time. This cluster is also currently operating as a Performance
{{capitalize @performanceMode}}.
{{/if}}
{{else}}
Note: If both
CA file
and
CA path
are not given, they default to system CA roots.
{{/if}}
{{else}}
The token you are using is not authorized to enable secondary replication.
{{/if}}
{{/if}}
{{#if
(or (and (eq this.data.mode "primary") @canEnablePrimary) (and (eq this.data.mode "secondary") @canEnableSecondary))
}}