Skip to content

Conversation

@IegorKozakov
Copy link
Contributor

Auto login
Updating dialog
Notification messages

.message__wrap.m-notification_message {
display: block;
color: #778594;
font-family: Roboto;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you set font-family? If you set Roboto to body .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And may be need alternative fonts - font-family: Roboto, sans-serif;

color: #778594;
font-family: Roboto;
font-size: 13px;
font-weight: 500;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use font: 500 13px/15px Roboto, sans-serif;
if you set all of property

}

.group_chat__user_list {
.update_update_chat_name_form {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update_update - seriously?

background: #fff;
}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove line


.create_dialog_form {
.create_dialog_form,
.update_dialog_form {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you can use one selector with modifier for form if you form has equals style.

.create_dialog_btn {
width: 96px;
flex: 0 0 96px;
.create_dialog_btn,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set unified class .btn for buttons, so many repeats

}

.message__avatar.m-user__img_not_loaded,
.message__avatar.m-typing_uncnown {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncnown => unknown

font-size: 16px;
line-height: 19px;
color: #C5CACE;
transition: 0.15s;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better use all properties: what will animate, time, func of animation

<form name="loginForm" class="login__form">
<div class="login_form__row">
<label for="userName">User name</label>
<input type="text" id="userName" name="userName"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add to spec patterns to input data as username, usergroup

logoutBtn = document.querySelector('.j-logout');

if(activeTabName){
renderParams.tabName = activeTabName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

; is all what we need


var activeTab = document.querySelector('.j-sidebar__tab_link.active'),
tabType = activeTab.dataset.type,
dialogType = dialog.type === 1 ? "public" : "chat";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use singlequote

if (message.extension && (message.extension.notification_type === '1' || message.extension.notification_type === 'creating_dialog')) {
var dialog = dialogModule._cache[message.dialog_id || message.extension.dialog_id];

if (message.extension && message.extension.notification_type === '1') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set '1' as CONST

dialogModule.renderDialog(dialogModule._cache[dialog._id], true);
}
}).catch(function(error){
console.error(error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it all handle if we don't found the dialog?

this.container = null;
this.attachmentPreviewContainer = null;
this.typingTymeout = appConfig.typingTymeout || 3
this.typingTymeout = appConfig.typingTymeout || 3;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typingTymeout => typingTimeout

} else {
/** In first trying to login */

console.log(userRequiredParams);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove console.log

@IegorKozakov IegorKozakov merged commit 8096b65 into develop Apr 25, 2017
@Vladlukhanin Vladlukhanin deleted the develop.sprint8.chatSample branch November 9, 2017 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants