Commit db22528c authored by yann300's avatar yann300

put homepage start in settings

parent 77342077
...@@ -18,7 +18,8 @@ module.exports = class SettingsTab { ...@@ -18,7 +18,8 @@ module.exports = class SettingsTab {
self._deps = { self._deps = {
config: self._components.registry.get('config').api, config: self._components.registry.get('config').api,
editorPanel: self._components.registry.get('editorpanel').api, editorPanel: self._components.registry.get('editorpanel').api,
editor: self._components.registry.get('editor').api editor: self._components.registry.get('editor').api,
appManager: self._components.registry.get('appmanager').api
} }
self._view = { /* eslint-disable */ self._view = { /* eslint-disable */
el: null, el: null,
...@@ -79,6 +80,14 @@ module.exports = class SettingsTab { ...@@ -79,6 +80,14 @@ module.exports = class SettingsTab {
self._view.theme.clean = yo`<input onchange=${onswitch2cleanTheme} class="align-middle form-check-input" name="theme" id="themeClean" type="radio">` self._view.theme.clean = yo`<input onchange=${onswitch2cleanTheme} class="align-middle form-check-input" name="theme" id="themeClean" type="radio">`
self._view.theme[self.data.currentTheme].setAttribute('checked', 'checked') self._view.theme[self.data.currentTheme].setAttribute('checked', 'checked')
self._view.config.homePage = yo`
<div class="${css.info} card">
<div class="card-body">
<h6 class="${css.title} card-title">Home Page</h6>
<button class="btn btn-primary sm-1" onclick="${() => { this._deps.appManager.ensureActivated('homepage') }}" > Load Home Page </button>
<button class="btn btn-primary sm-1" onclick="${() => { window.open('https://gitter.im/ethereum/remix') }}"> Load Gitter Chat </button>
</div>
</div>`
self._view.config.general = yo` self._view.config.general = yo`
<div class="${css.info} card"> <div class="${css.info} card">
<div class="card-body"> <div class="card-body">
...@@ -134,6 +143,7 @@ module.exports = class SettingsTab { ...@@ -134,6 +143,7 @@ module.exports = class SettingsTab {
</div>` </div>`
self._view.el = yo` self._view.el = yo`
<div class="${css.settingsTabView}" id="settingsView"> <div class="${css.settingsTabView}" id="settingsView">
${self._view.config.homePage}
${self._view.config.general} ${self._view.config.general}
${self._view.gistToken} ${self._view.gistToken}
${self._view.config.themes} ${self._view.config.themes}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment