* fix react proptypes

* Replace the handle field and label with url

* Update rename channel url correctly

* fix merge

* fix after test-1

* update i18n
Этот коммит содержится в:
fengpan
2017-02-17 21:58:39 +08:00
коммит произвёл Joram Wilander
родитель 26e44d9b32
Коммит b3afe9fb16
7 изменённых файлов: 50 добавлений и 31 удалений

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

@@ -9,11 +9,12 @@ export function cleanUpUrlable(input) {
return cleaned;
}
export function getShortenedTeamURL(teamURL = '') {
if (teamURL.length > 35) {
return teamURL.substring(0, 10) + '...' + teamURL.substring(teamURL.length - 12, teamURL.length) + '/';
export function getShortenedURL(url = '', getLength = 27) {
if (url.length > 35) {
const subLength = getLength - 14;
return url.substring(0, 10) + '...' + url.substring(url.length - subLength, url.length) + '/';
}
return teamURL + '/';
return url + '/';
}
export function getSiteURL() {