Skip to content

Commit fa151c0

Browse files
committed
fix lint
Signed-off-by: bupd <[email protected]>
1 parent f50e1c2 commit fa151c0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,13 @@ <h3 class="modal-title">{{ headerTitle | translate }}</h3>
832832
[checked]="true"
833833
id="singleActiveReplication"
834834
formControlName="single_active_replication" />
835-
<label for="singleActiveReplication" class="clr-control-label"
836-
>{{ 'REPLICATION.SINGLE_ACTIVE_REPLICATION' | translate }}
835+
<label
836+
for="singleActiveReplication"
837+
class="clr-control-label"
838+
>{{
839+
'REPLICATION.SINGLE_ACTIVE_REPLICATION'
840+
| translate
841+
}}
837842
<clr-tooltip class="override-tooltip">
838843
<clr-icon
839844
clrTooltipTrigger
@@ -844,7 +849,8 @@ <h3 class="modal-title">{{ headerTitle | translate }}</h3>
844849
clrSize="md"
845850
*clrIfOpen>
846851
<span>{{
847-
'TOOLTIP.SINGLE_ACTIVE_REPLICATION' | translate
852+
'TOOLTIP.SINGLE_ACTIVE_REPLICATION'
853+
| translate
848854
}}</span>
849855
</clr-tooltip-content>
850856
</clr-tooltip>

src/server/v2.0/handler/replication.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ func convertReplicationPolicy(policy *repctlmodel.Policy) *models.ReplicationPol
454454
Speed: &policy.Speed,
455455
UpdateTime: strfmt.DateTime(policy.UpdateTime),
456456
CopyByChunk: &policy.CopyByChunk,
457-
SingleActiveReplication: &policy.SingleActiveReplication,
457+
SingleActiveReplication: &policy.SkipIfRunning,
458458
}
459459
if policy.SrcRegistry != nil {
460460
p.SrcRegistry = convertRegistry(policy.SrcRegistry)

0 commit comments

Comments
 (0)