Skip to content

Commit

Permalink
style tweaks to the raft-join component
Browse files Browse the repository at this point in the history
  • Loading branch information
meirish committed Sep 18, 2019
1 parent 2bcb346 commit 01ed6f4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions ui/app/components/raft-join.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { inject as service } from '@ember/service';
import Component from '@ember/component';

export default Component.extend({
classNames: 'raft-join',
store: service(),
onDismiss() {},
preference: 'join',
Expand Down
12 changes: 12 additions & 0 deletions ui/app/styles/components/raft-join.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.raft-join .field {
margin-bottom: 0;
}
.raft-join .box.is-fullwidth {
padding-top: $spacing-s;
padding-bottom: $spacing-s;
}
.raft-join-unseal {
color: $orange;
font-size: $size-6;
display: inline-block;
}
1 change: 1 addition & 0 deletions ui/app/styles/core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
@import './components/page-header';
@import './components/popup-menu';
@import './components/radial-progress';
@import './components/raft-join';
@import './components/role-item';
@import './components/search-select';
@import './components/shamir-progress';
Expand Down
16 changes: 10 additions & 6 deletions ui/app/templates/components/raft-join.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,28 @@
@type="warning"
@message="Vault is sealed"
@yieldWithoutColumn={{true}}
class="is-marginless"
>
<div class="has-text-warn is-flex is-flex-v-centered">
<div class="is-flex is-flex-v-centered">
<div>
<span class="is-size-6 has-text-warning is-inline-block ">Warning</span> Vault is sealed
<span class="message-title">Warning</span> Vault is sealed
</div>
</div>
</AlertBanner>
{{#if this.showJoinForm}}
<div class="box is-marginless is-shadowless">
<EditForm @model={{compute (action "newModel")}}
<div class="box is-marginless is-shadowless">
<h2 class="title is-5">
Join an existing Raft cluster
</h2>
<EditForm @model={{compute (action "newModel")}}
@saveButtonText="Join"
@cancelButtonText="Back"
@onCancel={{action (mut this.showJoinForm) false}}
@onSave={{transition-to "vault.cluster.unseal"}}
@flashEnabled={{false}}
@includeBox={{false}}
/>
</div>
</div>
{{else}}
<form onsubmit={{action "advanceFirstScreen" }}>
<div class="box is-marginless is-shadowless">
Expand All @@ -39,7 +44,6 @@
<label for="join" />
Join an existing Raft cluster
</RadioButton>

<RadioButton
@value="init"
@groupValue={{this.preference}}
Expand Down

0 comments on commit 01ed6f4

Please sign in to comment.