PLT-7 fixing dist build
Этот коммит содержится в:
@@ -5,8 +5,6 @@ import * as Client from '../utils/client.jsx';
|
||||
import Login from '../components/login.jsx';
|
||||
|
||||
var IntlProvider = ReactIntl.IntlProvider;
|
||||
ReactIntl.addLocaleData(ReactIntlLocaleData.en);
|
||||
ReactIntl.addLocaleData(ReactIntlLocaleData.es);
|
||||
|
||||
class Root extends React.Component {
|
||||
constructor() {
|
||||
|
||||
@@ -58,6 +58,9 @@
|
||||
<style id="antiClickjack">body{display:none !important;}</style>
|
||||
|
||||
<script>
|
||||
ReactIntl.addLocaleData(ReactIntlLocaleData.en);
|
||||
ReactIntl.addLocaleData(ReactIntlLocaleData.es);
|
||||
|
||||
window.mm_config = {{ .ClientCfg }};
|
||||
window.mm_license = {{ .ClientLicense }};
|
||||
window.mm_team = {{ .Team }};
|
||||
|
||||
@@ -51,6 +51,7 @@ func (me *HtmlTemplatePage) Render(c *api.Context, w http.ResponseWriter) {
|
||||
me.Locale = me.User.Locale
|
||||
}
|
||||
|
||||
me.Props["Locale"] = me.Locale
|
||||
me.SessionTokenIndex = c.SessionTokenIndex
|
||||
|
||||
if err := Templates.ExecuteTemplate(w, me.TemplateName, me); err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user