diff --git a/CHANGELOG.md b/CHANGELOG.md index c695cab4da..59307f9000 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -159,6 +159,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed build process @Ć’aboweb - [\#1818](https://github.com/cosmos/voyager/issues/1818) Fixed error on validator loading showing as no validators @faboweb - Fixed error locations sucked up by Sentry @faboweb +- - [\#1815](https://github.com/cosmos/voyager/pull/1785) Fixed small bug on preferences page @jbibla ## [0.10.7] - 2018-10-10 diff --git a/app/src/renderer/components/common/PagePreferences.vue b/app/src/renderer/components/common/PagePreferences.vue index a29b2b7393..93212447e8 100644 --- a/app/src/renderer/components/common/PagePreferences.vue +++ b/app/src/renderer/components/common/PagePreferences.vue @@ -4,15 +4,12 @@ - - - - + + {{ nodeURL }} @@ -33,17 +30,6 @@ /> - - - - - @@ -90,10 +76,6 @@ export default { this.themeSelectActive = this.themes.active }, methods: { - signOut({ $store } = this) { - $store.dispatch(`signOut`) - $store.commit(`notifySignOut`) - }, setAppTheme({ $store, themes } = this) { if (themes.active === `dark`) { $store.commit(`setTheme`, `light`) diff --git a/app/src/renderer/components/common/TmPageHeader.vue b/app/src/renderer/components/common/TmPageHeader.vue index 0c2e036e48..65d35698ee 100644 --- a/app/src/renderer/components/common/TmPageHeader.vue +++ b/app/src/renderer/components/common/TmPageHeader.vue @@ -56,7 +56,7 @@ export default { .tm-page-header-container { min-height: 4.22rem; flex-wrap: wrap; - border-bottom: px solid var(--bc); + border-bottom: 1px solid var(--bc-dim); display: flex; padding: 0 1rem 0 1rem; } diff --git a/app/src/renderer/components/common/ToolBar.vue b/app/src/renderer/components/common/ToolBar.vue index cacd502fab..d395d52414 100644 --- a/app/src/renderer/components/common/ToolBar.vue +++ b/app/src/renderer/components/common/ToolBar.vue @@ -32,6 +32,7 @@ @@ -58,7 +59,7 @@ export default { } }, computed: { - ...mapGetters([`user`, `lastPage`]), + ...mapGetters([`user`, `lastPage`, `config`]), searchEnabled() { return !!this.searching }, diff --git a/test/e2e/preferences.js b/test/e2e/preferences.js index 3f8f61b007..5c0786c1d4 100644 --- a/test/e2e/preferences.js +++ b/test/e2e/preferences.js @@ -17,8 +17,7 @@ test(`preferences`, async function(t) { await navigateToPreferences(app) t.test(`shows preferences`, async function(t) { - t.ok(await $(`div*=Settings`).waitForExist(), `shows Settings`) - t.ok(await $(`div*=Account`).waitForExist(), `shows Account`) + t.ok(await $(`div*=Node IP`).waitForExist(), `shows Node IP`) t.end() }) diff --git a/test/unit/specs/components/common/PagePreferences.spec.js b/test/unit/specs/components/common/PagePreferences.spec.js index c30c9851b5..3b74202636 100644 --- a/test/unit/specs/components/common/PagePreferences.spec.js +++ b/test/unit/specs/components/common/PagePreferences.spec.js @@ -25,16 +25,9 @@ describe(`PagePreferences`, () => { it(`has the expected html structure if connected`, async () => { store.commit(`setStakingParameters`, stakingParameters.parameters) expect(wrapper.vm.$el).toMatchSnapshot() + expect(wrapper.vm.$el.outerHTML).toContain(`Node IP`) expect(wrapper.vm.$el.outerHTML).toContain(`View tutorial`) expect(wrapper.vm.$el.outerHTML).toContain(`Automatically send`) - expect(wrapper.vm.$el.outerHTML).toContain(`Switch account`) - expect(wrapper.vm.$el.outerHTML).toContain(`Sign Out`) - }) - - it(`should sign the user out`, async () => { - wrapper.vm.signOut() - expect(store.dispatch).toHaveBeenCalledWith(`signOut`) - expect(store.commit).toHaveBeenCalledWith(`notifySignOut`) }) it(`should set the error collection opt in`, async () => { diff --git a/test/unit/specs/components/common/__snapshots__/PagePreferences.spec.js.snap b/test/unit/specs/components/common/__snapshots__/PagePreferences.spec.js.snap index 30bc291695..6a8d8ea856 100644 --- a/test/unit/specs/components/common/__snapshots__/PagePreferences.spec.js.snap +++ b/test/unit/specs/components/common/__snapshots__/PagePreferences.spec.js.snap @@ -172,23 +172,7 @@ exports[`PagePreferences has the expected html structure if connected 1`] = `
-
-
-
- Settings -
- - -
-
+
- +
@@ -282,12 +251,7 @@ exports[`PagePreferences has the expected html structure if connected 1`] = ` - + @@ -373,92 +337,6 @@ exports[`PagePreferences has the expected html structure if connected 1`] = ` - -
-
-
-
-
- Account -
- - -
-
- -
-
-
-
- -
- -
-
- Switch account -
- -
- -
-
- -
- -
-
-
-
-
-
`; diff --git a/test/unit/specs/components/staking/__snapshots__/PageValidator.spec.js.snap b/test/unit/specs/components/staking/__snapshots__/PageValidator.spec.js.snap index 91326a21a7..38c6722c6e 100644 --- a/test/unit/specs/components/staking/__snapshots__/PageValidator.spec.js.snap +++ b/test/unit/specs/components/staking/__snapshots__/PageValidator.spec.js.snap @@ -1185,16 +1185,7 @@ exports[`PageValidator shows an error if the validator couldn't be found 1`] = ` - - - settings - - +