Show alert if syncing is disabled for profile.

This commit is contained in:
FelisCatus 2015-02-11 15:59:10 +08:00
parent 2f6e9dc280
commit ac2e5f00b5
5 changed files with 33 additions and 0 deletions

View File

@ -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 :: "
},

View File

@ -355,6 +355,12 @@
"options_syncUnsupportedHelp": {
"message": "选项同步暂不支持您的平台或浏览器。目前只支持桌面版Chrome的浏览器的同步请谅解。"
},
"options_profileSyncDisabled": {
"message": "此情景模式已经禁用同步。"
},
"options_profileSyncDisabled_quotaPerItem": {
"message": "此情景模式使用存储空间过多,因此无法进行同步。"
},
"options_profileTabPrefix": {
"message": "情景模式: "
},

View File

@ -355,6 +355,12 @@
"options_syncUnsupportedHelp": {
"message": "選項同步暫不支援您的平臺或瀏覽器。目前只支援桌面版Chrome的瀏覽器的同步請諒解。"
},
"options_profileSyncDisabled": {
"message": "此情景模式已經禁用同步。"
},
"options_profileSyncDisabled_quotaPerItem": {
"message": "此情景模式使用儲存空間過多,因此無法進行同步。"
},
"options_profileTabPrefix": {
"message": "情景模式: "
},

View File

@ -355,6 +355,12 @@
"options_syncUnsupportedHelp": {
"message": "選項同步暫不支援您的平臺或瀏覽器。目前只支援桌面版Chrome的瀏覽器的同步請諒解。"
},
"options_profileSyncDisabled": {
"message": "此情景模式已經禁用同步。"
},
"options_profileSyncDisabled_quotaPerItem": {
"message": "此情景模式使用儲存空間過多,因此無法進行同步。"
},
"options_profileTabPrefix": {
"message": "情景模式: "
},

View File

@ -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')