-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
replication-action-reindex.hbs
53 lines (51 loc) · 1.5 KB
/
replication-action-reindex.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
51
52
53
<div class="action-block is-rounded" data-test-reindex-replication>
<div class="action-block-info">
<h4 class="title is-5 is-marginless">
Reindex
</h4>
<p>
Reindex the local data storage
</p>
</div>
<div class="action-block-action">
<button
class="button is-secondary"
onclick={{action (mut isModalActive) true}}
data-test-replication-action-trigger
>
Reindex
</button>
</div>
</div>
<Modal
@title="Begin reindex?"
@onClose={{action (mut isModalActive) false}}
@isActive={{isModalActive}}
@type="warning"
@showCloseButton={{true}}
>
<section class="modal-card-body">
<p class="has-bottom-margin-m">
Reindexing can cause a very long delay on the number and size of objects in the data store. {{if model.replicationAttrs.isPrimary 'You should always re-index your secondary first.'}}
</p>
<p>
Progress will be shown, and you will {{ if model.replicationAttrs.isPrimary 'not' }} be able to use Vault during this time.
</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" "reindex"}}
data-test-reindex-confirm-button
>
Reindex
</button>
<button
class="button is-secondary"
onclick={{action (mut isModalActive) false}}
data-test-reindex-cancel-button>
Cancel
</button>
</footer>
</Modal>