[MM-50352] Improve URL validation and add/edit server experience (#2720)
* [MM-50352] Improve URL validation and add/edit server experience * Fix build * Fix translations * First pass of fixes * Some changes to avoid 2 clicks, tests * PR feedback * Update translations * PR feedback * Fix translations * PR feedback * E2E test fixes
This commit is contained in:
@@ -170,3 +170,5 @@ export const UPDATE_APPSTATE_FOR_VIEW_ID = 'update-appstate-for-view-id';
|
||||
export const MAIN_WINDOW_CREATED = 'main-window-created';
|
||||
export const MAIN_WINDOW_RESIZED = 'main-window-resized';
|
||||
export const MAIN_WINDOW_FOCUSED = 'main-window-focused';
|
||||
|
||||
export const VALIDATE_SERVER_URL = 'validate-server-url';
|
||||
|
@@ -44,6 +44,17 @@ export const DOWNLOADS_DROPDOWN_MENU_FULL_HEIGHT = DOWNLOADS_DROPDOWN_MENU_HEIGH
|
||||
export const DOWNLOADS_DROPDOWN_MAX_ITEMS = 50;
|
||||
export const DOWNLOADS_DROPDOWN_AUTOCLOSE_TIMEOUT = 4000; // 4 sec
|
||||
|
||||
export const URLValidationStatus = {
|
||||
OK: 'OK',
|
||||
Missing: 'MISSING',
|
||||
Invalid: 'INVALID',
|
||||
Insecure: 'INSECURE',
|
||||
URLExists: 'URL_EXISTS',
|
||||
NotMattermost: 'NOT_MATTERMOST',
|
||||
URLNotMatched: 'URL_NOT_MATCHED',
|
||||
URLUpdated: 'URL_UPDATED',
|
||||
};
|
||||
|
||||
// supported custom login paths (oath, saml)
|
||||
export const customLoginRegexPaths = [
|
||||
/^\/oauth\/authorize$/i,
|
||||
|
Reference in New Issue
Block a user