-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
replication-action-recover.hbs
50 lines (48 loc) · 1.25 KB
/
replication-action-recover.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<div class="action-block is-rounded">
<div class="action-block-info">
<h4 class="title is-5 is-marginless">
Recover
</h4>
<p>
Attempt recovery if replication is in a bad state.
</p>
</div>
<div class="action-block-action">
<button
class="button is-secondary"
onclick={{action (mut isModalActive) true}}
data-test-replication-action-trigger
>
Recover
</button>
</div>
</div>
<Modal
@title="Begin recovery?"
@onClose={{action (mut isModalActive) false}}
@isActive={{isModalActive}}
@type="warning"
@showCloseButton={{true}}
>
<section class="modal-card-body">
<p>
If replication is in an adverse state, we can begin recovery. This will attempt to recover to continue syncing.
</p>
</section>
<footer class="modal-card-foot modal-card-foot-outlined">
<button
class="button is-primary"
disabled={{if (and (eq replicationMode "dr") (not dr_operation_token)) true}}
onclick={{action "onSubmit" "recover"}}
data-test-recover-confirm-button
>
Recover
</button>
<button
class="button is-secondary"
onclick={{action (mut isModalActive) false}}
data-test-recover-cancel-button>
Cancel
</button>
</footer>
</Modal>