summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-12 04:45:34 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-12 04:45:34 +0900
commit1e7a7d16d418a908b6c07edf9f0d9dbf11cc901e (patch)
tree554a7913ccb2b88c2259838c99cd0163dc39b404
parent#907 (diff)
downloadmisskey-1e7a7d16d418a908b6c07edf9f0d9dbf11cc901e.tar.gz
misskey-1e7a7d16d418a908b6c07edf9f0d9dbf11cc901e.tar.bz2
misskey-1e7a7d16d418a908b6c07edf9f0d9dbf11cc901e.zip
:v:
-rw-r--r--locales/en.yml1
-rw-r--r--locales/ja.yml1
-rw-r--r--src/web/app/desktop/tags/home-widgets/channel.tag9
3 files changed, 10 insertions, 1 deletions
diff --git a/locales/en.yml b/locales/en.yml
index 639219d2de..2845eec6a1 100644
--- a/locales/en.yml
+++ b/locales/en.yml
@@ -377,6 +377,7 @@ desktop:
mk-channel-home-widget:
title: "Channel"
settings: "Widget settings"
+ get-started: "Please click the cog in the upper right to specify the channel to receive"
mk-timemachine-home-widget:
title: "{1} / {2}"
diff --git a/locales/ja.yml b/locales/ja.yml
index 5fedc27196..2d9aceb2db 100644
--- a/locales/ja.yml
+++ b/locales/ja.yml
@@ -377,6 +377,7 @@ desktop:
mk-channel-home-widget:
title: "チャンネル"
settings: "ウィジェットの設定"
+ get-started: "右上の歯車をクリックして受信するチャンネルを指定してください"
mk-timemachine-home-widget:
title: "{1}年 {2}月"
diff --git a/src/web/app/desktop/tags/home-widgets/channel.tag b/src/web/app/desktop/tags/home-widgets/channel.tag
index e663dd3158..c1a29f60bc 100644
--- a/src/web/app/desktop/tags/home-widgets/channel.tag
+++ b/src/web/app/desktop/tags/home-widgets/channel.tag
@@ -3,7 +3,8 @@
channel ? channel.title : '%i18n:desktop.tags.mk-channel-home-widget.title%'
}</p>
<button onclick={ settings } title="%i18n:desktop.tags.mk-channel-home-widget.settings%"><i class="fa fa-cog"></i></button>
- <mk-channel ref="channel"/>
+ <p class="get-started" if={ this.data.channel == null }>%i18n:desktop.tags.mk-channel-home-widget.get-started%</p>
+ <mk-channel ref="channel" show={ this.data.channel }/>
<style>
:scope
display block
@@ -39,6 +40,12 @@
&:active
color #999
+ > .get-started
+ margin 0
+ padding 16px
+ text-align center
+ color #aaa
+
> mk-channel
height 200px