This repository has been archived by the owner on Mar 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
173 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React, { PropTypes } from 'react'; | ||
import TextField from 'material-ui/TextField'; | ||
import Checkbox from 'material-ui/Checkbox'; | ||
import styles from './settings.css'; | ||
|
||
class Settings extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.setDeleteDialogPreference = this.setDeleteDialogPreference.bind(this); | ||
} | ||
|
||
setDeleteDialogPreference(e, isChecked) { | ||
if (isChecked) { | ||
window.localStorage.setItem('showDeleteModal','true'); | ||
} else { | ||
window.localStorage.setItem('showDeleteModal', 'false') | ||
} | ||
} | ||
|
||
render () { | ||
return ( | ||
<div> | ||
<h1 id={styles.welcomeHeadline}>Settings</h1> | ||
<p>Customize your settings here.</p> | ||
<p>You are currently connected to the Vault cluster on | ||
<span className={styles.code}>{window.localStorage.getItem('vaultUrl')}</span>. | ||
To switch this, you will need to logout.</p> | ||
<Checkbox | ||
label="Warn Dialog Before Delete" | ||
onCheck={this.setDeleteDialogPreference} | ||
defaultChecked={window.localStorage.getItem('showDeleteModal') === 'true'}/> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default Settings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#welcomeHeadline { | ||
font-size: 60px; | ||
font-weight: 200; | ||
} | ||
|
||
.code { | ||
padding: 2px 4px; | ||
font-size: 90%; | ||
color: #c7254e; | ||
background-color: #f9f2f4; | ||
border-radius: 4px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters