فهرست منبع

Show alert if syncing is disabled for profile.

FelisCatus 10 سال پیش
والد
کامیت
ac2e5f00b5

+ 6 - 0
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 :: "
   },

+ 6 - 0
omega-i18n/zh_CN/messages.json

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

+ 6 - 0
omega-i18n/zh_HK/messages.json

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

+ 6 - 0
omega-i18n/zh_TW/messages.json

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

+ 9 - 0
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')