forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update workspace list page (opensearch-project#238)
* feat: update workspace list Signed-off-by: tygao <[email protected]> * test: remove failed snapshots temporarily Signed-off-by: tygao <[email protected]> * add i18n Signed-off-by: tygao <[email protected]> * update create workspace url Signed-off-by: tygao <[email protected]> * use cleanWorkspaceId Signed-off-by: tygao <[email protected]> * update menu link Signed-off-by: tygao <[email protected]> --------- Signed-off-by: tygao <[email protected]>
- Loading branch information
Showing
5 changed files
with
156 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -357,4 +357,5 @@ export { | |
PUBLIC_WORKSPACE_ID, | ||
MANAGEMENT_WORKSPACE_ID, | ||
WORKSPACE_TYPE, | ||
cleanWorkspaceId, | ||
} from '../utils'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const debounce = (func: Function, delay: number) => { | ||
let timerId: NodeJS.Timeout; | ||
|
||
return (...args: any) => { | ||
if (!timerId) { | ||
func(...args); | ||
} | ||
clearTimeout(timerId); | ||
|
||
timerId = setTimeout(() => func(...args), delay); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters