Skip to content

Commit

Permalink
Merge pull request #1369 from aeternity/release/0.22.0
Browse files Browse the repository at this point in the history
Release 0.22.0
davidyuk authored Feb 4, 2020
2 parents e183523 + 4244cd3 commit 1376eeb
Showing 8 changed files with 26 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.aeternity.base" version="0.21.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.aeternity.base" version="0.22.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Base æpp</name>
<author href="https://aeternity.com">
aeternity developers
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aepp-base",
"version": "0.21.0",
"version": "0.22.0",
"author": "Sascha Hanse <shanse@posteo.de>",
"private": true,
"scripts": {
1 change: 1 addition & 0 deletions src/locales/cn.json
Original file line number Diff line number Diff line change
@@ -457,6 +457,7 @@
"created-at-height": "Created at height",
"expires-at-height": "Expires at height",
"set-default": "Set as a default name",
"to-extend": "Extend name",
"to-point": "Set name pointer",
"to-transfer": "Transfer name",
"to-transactions": "View in transactions",
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
@@ -457,6 +457,7 @@
"created-at-height": "Created at height",
"expires-at-height": "Expires at height",
"set-default": "Set as a default name",
"to-extend": "Extend name",
"to-point": "Set name pointer",
"to-transfer": "Transfer name",
"to-transactions": "View in transactions",
1 change: 1 addition & 0 deletions src/locales/es.json
Original file line number Diff line number Diff line change
@@ -457,6 +457,7 @@
"created-at-height": "Created at height",
"expires-at-height": "Expires at height",
"set-default": "Set as a default name",
"to-extend": "Extend name",
"to-point": "Set name pointer",
"to-transfer": "Transfer name",
"to-transactions": "View in transactions",
1 change: 1 addition & 0 deletions src/locales/ru.json
Original file line number Diff line number Diff line change
@@ -457,6 +457,7 @@
"created-at-height": "Зарегистрировано в блоке с номером",
"expires-at-height": "Зарегистрировано до блока с номером",
"set-default": "Установить по умолчанию",
"to-extend": "Продлить имя",
"to-point": "Установить указатель",
"to-transfer": "Передать имя",
"to-transactions": "Открыть транзакцию",
19 changes: 19 additions & 0 deletions src/pages/mobile/NameDetails.vue
Original file line number Diff line number Diff line change
@@ -17,6 +17,13 @@
{{ $t('name.details.set-default') }}
</AeButton>

<AeButton
:disabled="!address"
@click="extendName"
>
{{ $t('name.details.to-extend') }}
</AeButton>

<AeButton :to="{ name: 'name-point', params: { name } }">
{{ $t('name.details.to-point') }}
</AeButton>
@@ -87,6 +94,18 @@ export default {
address: this.address,
});
},
async extendName() {
const initialAccountIdx = this.$store.state.accounts.activeIdx;
const requredAccountIdx = this.$store.state.accounts.list
.findIndex(({ address }) => address === this.details.owner);
if (initialAccountIdx !== requredAccountIdx) {
this.$store.commit('accounts/setActiveIdx', requredAccountIdx);
}
await this.$store.dispatch('names/updatePointer', { name: this.name, address: this.address });
if (initialAccountIdx !== requredAccountIdx) {
this.$store.commit('accounts/setActiveIdx', initialAccountIdx);
}
},
},
};
</script>

0 comments on commit 1376eeb

Please sign in to comment.