speed up SetMxIdDialog user check to 250ms as it was driving me MAD
i18nize new bottomleftmenu buttons
This commit is contained in:
parent
5c885922d9
commit
1efc5c2b25
7 changed files with 17 additions and 7 deletions
|
@ -23,7 +23,7 @@ import classnames from 'classnames';
|
||||||
|
|
||||||
// The amount of time to wait for further changes to the input username before
|
// The amount of time to wait for further changes to the input username before
|
||||||
// sending a request to the server
|
// sending a request to the server
|
||||||
const USERNAME_CHECK_DEBOUNCE_MS = 2000;
|
const USERNAME_CHECK_DEBOUNCE_MS = 250;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompt the user to set a display name.
|
* Prompt the user to set a display name.
|
||||||
|
|
|
@ -17,13 +17,14 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
const CreateRoomButton = function(props) {
|
const CreateRoomButton = function(props) {
|
||||||
const ActionButton = sdk.getComponent('elements.ActionButton');
|
const ActionButton = sdk.getComponent('elements.ActionButton');
|
||||||
return (
|
return (
|
||||||
<ActionButton action="view_create_chat"
|
<ActionButton action="view_create_chat"
|
||||||
mouseOverAction={props.callout ? "callout_create_room" : null}
|
mouseOverAction={props.callout ? "callout_create_room" : null}
|
||||||
label="Create new room"
|
label={ _t("Create new room") }
|
||||||
iconPath="img/icons-create-room.svg"
|
iconPath="img/icons-create-room.svg"
|
||||||
size={props.size}
|
size={props.size}
|
||||||
tooltip={props.tooltip}
|
tooltip={props.tooltip}
|
||||||
|
|
|
@ -17,12 +17,13 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
const HomeButton = function(props) {
|
const HomeButton = function(props) {
|
||||||
const ActionButton = sdk.getComponent('elements.ActionButton');
|
const ActionButton = sdk.getComponent('elements.ActionButton');
|
||||||
return (
|
return (
|
||||||
<ActionButton action="view_home_page"
|
<ActionButton action="view_home_page"
|
||||||
label="Welcome page"
|
label={ _t("Welcome page") }
|
||||||
iconPath="img/icons-home.svg"
|
iconPath="img/icons-home.svg"
|
||||||
size={props.size}
|
size={props.size}
|
||||||
tooltip={props.tooltip}
|
tooltip={props.tooltip}
|
||||||
|
|
|
@ -17,13 +17,14 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
const RoomDirectoryButton = function(props) {
|
const RoomDirectoryButton = function(props) {
|
||||||
const ActionButton = sdk.getComponent('elements.ActionButton');
|
const ActionButton = sdk.getComponent('elements.ActionButton');
|
||||||
return (
|
return (
|
||||||
<ActionButton action="view_room_directory"
|
<ActionButton action="view_room_directory"
|
||||||
mouseOverAction={props.callout ? "callout_room_directory" : null}
|
mouseOverAction={props.callout ? "callout_room_directory" : null}
|
||||||
label="Room directory"
|
label={ _t("Room directory") }
|
||||||
iconPath="img/icons-directory.svg"
|
iconPath="img/icons-directory.svg"
|
||||||
size={props.size}
|
size={props.size}
|
||||||
tooltip={props.tooltip}
|
tooltip={props.tooltip}
|
||||||
|
|
|
@ -17,12 +17,13 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
const SettingsButton = function(props) {
|
const SettingsButton = function(props) {
|
||||||
const ActionButton = sdk.getComponent('elements.ActionButton');
|
const ActionButton = sdk.getComponent('elements.ActionButton');
|
||||||
return (
|
return (
|
||||||
<ActionButton action="view_user_settings"
|
<ActionButton action="view_user_settings"
|
||||||
label="Settings"
|
label={ _t("Settings") }
|
||||||
iconPath="img/icons-settings.svg"
|
iconPath="img/icons-settings.svg"
|
||||||
size={props.size}
|
size={props.size}
|
||||||
tooltip={props.tooltip}
|
tooltip={props.tooltip}
|
||||||
|
|
|
@ -17,13 +17,14 @@ limitations under the License.
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
const StartChatButton = function(props) {
|
const StartChatButton = function(props) {
|
||||||
const ActionButton = sdk.getComponent('elements.ActionButton');
|
const ActionButton = sdk.getComponent('elements.ActionButton');
|
||||||
return (
|
return (
|
||||||
<ActionButton action="view_create_chat"
|
<ActionButton action="view_create_chat"
|
||||||
mouseOverAction={props.callout ? "callout_start_chat" : null}
|
mouseOverAction={props.callout ? "callout_start_chat" : null}
|
||||||
label="Start chat"
|
label={ _t("Start chat") }
|
||||||
iconPath="img/icons-people.svg"
|
iconPath="img/icons-people.svg"
|
||||||
size={props.size}
|
size={props.size}
|
||||||
tooltip={props.tooltip}
|
tooltip={props.tooltip}
|
||||||
|
|
|
@ -673,5 +673,10 @@
|
||||||
"%(oneUser)schanged their avatar %(repeats)s times": "%(oneUser)schanged their avatar %(repeats)s times",
|
"%(oneUser)schanged their avatar %(repeats)s times": "%(oneUser)schanged their avatar %(repeats)s times",
|
||||||
"%(severalUsers)schanged their avatar": "%(severalUsers)schanged their avatar",
|
"%(severalUsers)schanged their avatar": "%(severalUsers)schanged their avatar",
|
||||||
"%(oneUser)schanged their avatar": "%(oneUser)schanged their avatar",
|
"%(oneUser)schanged their avatar": "%(oneUser)schanged their avatar",
|
||||||
"Please select the destination room for this message": "Please select the destination room for this message"
|
"Please select the destination room for this message": "Please select the destination room for this message",
|
||||||
|
"Create new room": "Create new room",
|
||||||
|
"Welcome page": "Welcome page",
|
||||||
|
"Room directory": "Room directory",
|
||||||
|
"Start chat": "Start chat",
|
||||||
|
"New Password": "New Password"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue