Rename channel (#5322)
* fix react proptypes * Replace the handle field and label with url * Update rename channel url correctly * fix merge * fix after test-1 * update i18n
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
26e44d9b32
Коммит
b3afe9fb16
@@ -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() {
|
||||
|
||||
Ссылка в новой задаче
Block a user