From ac2e5f00b5e12ba942ab684736da1cd72aba8ecc Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Wed, 11 Feb 2015 15:59:10 +0800 Subject: [PATCH] Show alert if syncing is disabled for profile. --- omega-i18n/en/messages.json | 6 ++++++ omega-i18n/zh_CN/messages.json | 6 ++++++ omega-i18n/zh_HK/messages.json | 6 ++++++ omega-i18n/zh_TW/messages.json | 6 ++++++ omega-web/src/partials/profile.jade | 9 +++++++++ 5 files changed, 33 insertions(+) diff --git a/omega-i18n/en/messages.json b/omega-i18n/en/messages.json index b39c916..a85cd4f 100644 --- a/omega-i18n/en/messages.json +++ b/omega-i18n/en/messages.json @@ -355,6 +355,12 @@ "options_syncUnsupportedHelp": { "message": "Options syncing is not supported on your platform or browser. For now, only Chrome browser on desktop is supported." }, + "options_profileSyncDisabled": { + "message": "Syncing is disabled for this profile." + }, + "options_profileSyncDisabled_quotaPerItem": { + "message": "Syncing is disabled for this profile for using too much storage space." + }, "options_profileTabPrefix": { "message": "Profile :: " }, diff --git a/omega-i18n/zh_CN/messages.json b/omega-i18n/zh_CN/messages.json index 873daab..44777df 100644 --- a/omega-i18n/zh_CN/messages.json +++ b/omega-i18n/zh_CN/messages.json @@ -355,6 +355,12 @@ "options_syncUnsupportedHelp": { "message": "选项同步暂不支持您的平台或浏览器。目前只支持桌面版Chrome的浏览器的同步,请谅解。" }, + "options_profileSyncDisabled": { + "message": "此情景模式已经禁用同步。" + }, + "options_profileSyncDisabled_quotaPerItem": { + "message": "此情景模式使用存储空间过多,因此无法进行同步。" + }, "options_profileTabPrefix": { "message": "情景模式: " }, diff --git a/omega-i18n/zh_HK/messages.json b/omega-i18n/zh_HK/messages.json index 7c53418..075ebee 100644 --- a/omega-i18n/zh_HK/messages.json +++ b/omega-i18n/zh_HK/messages.json @@ -355,6 +355,12 @@ "options_syncUnsupportedHelp": { "message": "選項同步暫不支援您的平臺或瀏覽器。目前只支援桌面版Chrome的瀏覽器的同步,請諒解。" }, + "options_profileSyncDisabled": { + "message": "此情景模式已經禁用同步。" + }, + "options_profileSyncDisabled_quotaPerItem": { + "message": "此情景模式使用儲存空間過多,因此無法進行同步。" + }, "options_profileTabPrefix": { "message": "情景模式: " }, diff --git a/omega-i18n/zh_TW/messages.json b/omega-i18n/zh_TW/messages.json index 9d422ea..12e9820 100644 --- a/omega-i18n/zh_TW/messages.json +++ b/omega-i18n/zh_TW/messages.json @@ -355,6 +355,12 @@ "options_syncUnsupportedHelp": { "message": "選項同步暫不支援您的平臺或瀏覽器。目前只支援桌面版Chrome的瀏覽器的同步,請諒解。" }, + "options_profileSyncDisabled": { + "message": "此情景模式已經禁用同步。" + }, + "options_profileSyncDisabled_quotaPerItem": { + "message": "此情景模式使用儲存空間過多,因此無法進行同步。" + }, "options_profileTabPrefix": { "message": "情景模式: " }, diff --git a/omega-web/src/partials/profile.jade b/omega-web/src/partials/profile.jade index d4e8616..48f62e4 100644 --- a/omega-web/src/partials/profile.jade +++ b/omega-web/src/partials/profile.jade @@ -27,4 +27,13 @@ x-spectrum-colorpicker(ng-model='profile.color' options='spectrumOptions' ng-if='profile.profileType != "VirtualProfile"') h2.profile-name {{'options_profileTabPrefix' | tr}}{{profile.name}} +section.settings-group(ng-show='profile.syncOptions == "disabled"') + p.alert.alert-info.width-limit(ng-show='!profile.syncError') + span.glyphicon.glyphicon-info-sign + = ' ' + | {{'Syncing is disabled for this profile.'}} + p.alert.alert-danger.width-limit(ng-show='!!profile.syncError') + span.glyphicon.glyphicon-remove + = ' ' + | {{('options_profileSyncDisabled_' + profile.syncError.reason) | tr}} div(ng-include='profileTemplate')