Ver Fonte

更新 notify 文案。

oldj há 8 anos atrás
pai
commit
8fc8bc57a5
3 ficheiros alterados com 6 adições e 4 exclusões
  1. 3 2
      app/bundle.js
  2. 1 1
      app/version.js
  3. 2 1
      ui/events/toggle_hosts.js

+ 3 - 2
app/bundle.js

@@ -4644,6 +4644,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
 
 module.exports = function (app, hosts) {
   hosts.on = !hosts.on;
+  var lang = app.state.lang;
 
   return _Agent2.default.pact('getPref').then(function (pref) {
     var list = app.state.list.slice(0);
@@ -4672,7 +4673,7 @@ module.exports = function (app, hosts) {
     return (0, _save2.default)(app, list, hosts);
   }).then(function () {
     _Agent2.default.pact('statRecord', 'switch');
-    return _Agent2.default.pact('notify', 'SwitchHosts!', 'OK');
+    return _Agent2.default.pact('notify', 'SwitchHosts!', lang.hosts_switched);
   });
 };
 
@@ -16495,7 +16496,7 @@ module.exports = ReactNoopUpdateQueue;
 "use strict";
 
 
-exports.version = [3, 3, 1, 5122];
+exports.version = [3, 3, 1, 5123];
 
 /***/ }),
 /* 70 */

+ 1 - 1
app/version.js

@@ -1 +1 @@
-exports.version = [3,3,1,5122];
+exports.version = [3,3,1,5123];

+ 2 - 1
ui/events/toggle_hosts.js

@@ -10,6 +10,7 @@ import save from './save'
 
 module.exports = (app, hosts) => {
   hosts.on = !hosts.on
+  let lang = app.state.lang
 
   return Agent.pact('getPref')
     .then(pref => {
@@ -39,7 +40,7 @@ module.exports = (app, hosts) => {
     })
     .then(() => {
       Agent.pact('statRecord', 'switch')
-      return Agent.pact('notify', 'SwitchHosts!', 'OK')
+      return Agent.pact('notify', 'SwitchHosts!', lang.hosts_switched)
     })
 
 }