From 1e7a7d16d418a908b6c07edf9f0d9dbf11cc901e Mon Sep 17 00:00:00 2001 From: syuilo <syuilotan@yahoo.co.jp> Date: Sun, 12 Nov 2017 04:45:34 +0900 Subject: [PATCH] :v: --- locales/en.yml | 1 + locales/ja.yml | 1 + src/web/app/desktop/tags/home-widgets/channel.tag | 9 ++++++++- 3 files changed, 10 insertions(+), 1 deletion(-) 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