[Client] Fix bug

This commit is contained in:
syuilo 2018-11-09 08:26:32 +09:00
parent 60ef3e3563
commit fccbecf159
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
44 changed files with 83 additions and 81 deletions

View file

@ -168,7 +168,7 @@ export default Vue.extend({
icon: 'pencil-alt',
text: this.$t('rename'),
action: () => {
(this as any).apis.input({
this.$root.apis.input({
title: this.$t('rename'),
default: this.name,
allowEmpty: false

View file

@ -137,7 +137,7 @@ export default Vue.extend({
align-items baseline
white-space nowrap
i, .mk-reaction-icon
[data-icon], .mk-reaction-icon
margin-right 4px
> .mk-time
@ -159,15 +159,15 @@ export default Vue.extend({
margin-right 3px
&.renote
> div > header i
> div > header [data-icon]
color #77B255
&.follow
> div > header i
> div > header [data-icon]
color #53c7ce
&.receiveFollowRequest
> div > header i
> div > header [data-icon]
color #888
</style>

View file

@ -131,7 +131,7 @@ export default Vue.extend({
},
mounted() {
document.title = this.$root.os.instanceName;
document.title = this.$root.instanceName;
document.documentElement.style.overflow = 'hidden';
},
@ -255,7 +255,7 @@ export default Vue.extend({
icon: 'hashtag',
text: this.$t('@deck.hashtag'),
action: () => {
(this as any).apis.input({
this.$root.apis.input({
title: this.$t('enter-hashtag-tl-title')
}).then(title => {
this.$store.dispatch('settings/addDeckColumn', {

View file

@ -23,7 +23,7 @@ export default Vue.extend({
}
},
mounted() {
document.title = this.$root.os.instanceName;
document.title = this.$root.instanceName;
Progress.start();
},

View file

@ -81,7 +81,7 @@ export default Vue.extend({
onBannerClick() {
if (!this.$store.getters.isSignedIn || this.$store.state.i.id != this.user.id) return;
(this as any).apis.updateBanner().then(i => {
this.$root.apis.updateBanner().then(i => {
this.user.bannerUrl = i.bannerUrl;
});
}

View file

@ -101,7 +101,7 @@ export default Vue.extend({
listId: list.id,
userId: this.user.id
});
(this as any).apis.dialog({
this.$root.apis.dialog({
title: 'Done!',
text: this.$t('list-pushed').replace('{user}', this.user.name).replace('{list}', list.title)
});