Этот коммит содержится в:
Christopher Speller
2015-10-30 16:43:50 -04:00
родитель 84faccb7b7
Коммит e7f29ea214
4 изменённых файлов: 8 добавлений и 10 удалений

Просмотреть файл

@@ -46,7 +46,7 @@ travis:
cd web/react/ && npm run build-libs
@echo Checking for style guide compliance
cd web/react && $(ESLINT) --quiet components/* dispatcher/* pages/* stores/* utils/*
cd web/react && $(ESLINT) --ext ".jsx" --ignore-pattern node_modules --quiet .
@echo Running gofmt
$(eval GOFMT_OUTPUT := $(shell gofmt -d -s api/ model/ store/ utils/ manualtesting/ mattermost.go 2>&1))
@echo "$(GOFMT_OUTPUT)"
@@ -143,7 +143,7 @@ install:
check: install
@echo Running ESLint...
-cd web/react && $(ESLINT) components/* dispatcher/* pages/* stores/* utils/*
-cd web/react && $(ESLINT) --ext ".jsx" --ignore-pattern node_modules .
@echo Running gofmt
$(eval GOFMT_OUTPUT := $(shell gofmt -d -s api/ model/ store/ utils/ manualtesting/ mattermost.go 2>&1))
@echo "$(GOFMT_OUTPUT)"

Просмотреть файл

@@ -259,7 +259,6 @@ export default class GitLabSettings extends React.Component {
}
}
//config.GitLabSettings.Scope = ReactDOM.findDOMNode(this.refs.Scope).value.trim();
// <div className='form-group'>
// <label

Просмотреть файл

@@ -6,7 +6,6 @@ var Constants = require('../../utils/constants.jsx');
var ChannelStore = require('../../stores/channel_store.jsx');
var LoadingScreen = require('../loading_screen.jsx');
export default class ManageOutgoingHooks extends React.Component {
constructor() {
super();

Просмотреть файл

@@ -37,18 +37,18 @@ function getNotificationsStateFromStores() {
if (user.notify_props.mention_keys) {
var keys = user.notify_props.mention_keys.split(',');
if (keys.indexOf(user.username) !== -1) {
if (keys.indexOf(user.username) === -1) {
usernameKey = false;
} else {
usernameKey = true;
keys.splice(keys.indexOf(user.username), 1);
} else {
usernameKey = false;
}
if (keys.indexOf('@' + user.username) !== -1) {
if (keys.indexOf('@' + user.username) === -1) {
mentionKey = false;
} else {
mentionKey = true;
keys.splice(keys.indexOf('@' + user.username), 1);
} else {
mentionKey = false;
}
customKeys = keys.join(',');