diff --git a/CHANGELOG.md b/CHANGELOG.md
index bca1e98b79..39d22ee2f6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
-## [3.0.0] - 2018-01-15
+## [0.3.0] - 2018-01-15
### Added
- Added a changelog @jolesbi.
+
+## [0.3.1] - 2018-01-30
+### Changed
+* Improved performance of amountBonded in LiDelegate.vue @nylira.
+* Prevented user from going to PageBond if they don't have any atoms/fermions @nylira.
+* Hid the bonding interface on PageDelegates if the user doesn't have any atoms @nylira.
diff --git a/app/src/renderer/components/common/NiSessionLoading.vue b/app/src/renderer/components/common/NiSessionLoading.vue
index fdb0382766..2c628c2333 100644
--- a/app/src/renderer/components/common/NiSessionLoading.vue
+++ b/app/src/renderer/components/common/NiSessionLoading.vue
@@ -4,7 +4,6 @@
.ni-session-title Loading…
.ni-session-main  
.ni-session-footer
- notifications(:notifications='notifications' theme='cosmos')
diff --git a/app/src/renderer/components/staking/PageBond.vue b/app/src/renderer/components/staking/PageBond.vue
index ab261d101c..220f2136a3 100644
--- a/app/src/renderer/components/staking/PageBond.vue
+++ b/app/src/renderer/components/staking/PageBond.vue
@@ -234,6 +234,15 @@ export default {
return d
})
},
+ leaveIfBroke (count) {
+ if (count === 0) {
+ this.$store.commit('notifyError', {
+ title: 'Cannot Bond Without Atoms',
+ body: 'You do not have any atoms to bond to delegates.'
+ })
+ this.$router.push('/staking')
+ }
+ },
leaveIfEmpty (count) {
if (count === 0) {
this.$store.commit('notifyError', {
@@ -323,6 +332,7 @@ export default {
}
},
async mounted () {
+ this.leaveIfBroke(this.user.atoms)
this.leaveIfEmpty(this.shoppingCart.length)
this.resetFields()
this.bondBarsInput()
diff --git a/app/src/renderer/components/staking/PageDelegates.vue b/app/src/renderer/components/staking/PageDelegates.vue
index 2d7c2e040f..e217e57723 100644
--- a/app/src/renderer/components/staking/PageDelegates.vue
+++ b/app/src/renderer/components/staking/PageDelegates.vue
@@ -18,8 +18,12 @@ page#page-delegates(title='Delegates')
li-delegate(v-for='i in filteredDelegates' :key='i.id' :delegate='i')
.fixed-button-bar
- .label #[strong {{ shoppingCart.length }}] delegates selected
- btn.btn__primary(type="link" to="/staking/bond" :disabled="shoppingCart.length < 1" icon="chevron_right" icon-pos="right" value="Next")
+ template(v-if="userCanDelegate")
+ .label #[strong {{ shoppingCart.length }}] delegates selected
+ btn.btn__primary(type="link" to="/staking/bond" :disabled="shoppingCart.length < 1" icon="chevron_right" icon-pos="right" value="Next")
+ template(v-else)
+ .label You do not have any ATOMs to delegate.
+ btn.btn__primary(disabled icon="chevron_right" icon-pos="right" value="Next")