diff --git a/webpack/lib/popup-controller.js b/webpack/lib/popup-controller.js index 8ffd439..9141359 100644 --- a/webpack/lib/popup-controller.js +++ b/webpack/lib/popup-controller.js @@ -38,6 +38,14 @@ export default class PopupController{ reset(){ this.data.link = '', this.data.name = ''; }, submit(){ gs.get.channel.create(this.data.name, this.data.link) && this.parent.hide(); } }); + /* (3) Change nickname */ + this.register('nickname.change', { + data: { + value: '' + }, + reset(){ this.data.value = ''; }, + submit(){ gs.get.content.change_username(this.data.value) && this.parent.hide(); } + }); } diff --git a/webpack/scss/pop-up.scss b/webpack/scss/pop-up.scss index 54d0f8d..6db3a61 100644 --- a/webpack/scss/pop-up.scss +++ b/webpack/scss/pop-up.scss @@ -90,6 +90,22 @@ align-items: stretch; flex-wrap: nowrap; + + a{ + display: inline-block; + font-size: .8em; + color: #aaa; + + cursor: pointer; + + &:after{ content: none; } + + &:hover{ + text-decoration: underline; + color: #fff; + } + } + } diff --git a/webpack/vue/auth/dialog.vue b/webpack/vue/auth/dialog.vue index ccf2c52..6e4a6a8 100644 --- a/webpack/vue/auth/dialog.vue +++ b/webpack/vue/auth/dialog.vue @@ -94,10 +94,10 @@