-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UD] Added ability to disable some menu items and corresponding routes (
#15777) * [UD] Added ability to disable some menu items and corresponding routes User Dashboard can disable some of menu items located in the side bar and corresponding routes. Signed-off-by: Oleksii Kurinnyi <[email protected]> * fixup! [UD] Added ability to disable some menu items and corresponding routes * fixup! fixup! [UD] Added ability to disable some menu items and corresponding routes
- Loading branch information
Showing
21 changed files
with
534 additions
and
150 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
33 changes: 33 additions & 0 deletions
33
dashboard/src/app/administration/administration-config.service.ts
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,33 @@ | ||
/* | ||
* Copyright (c) 2015-2018 Red Hat, Inc. | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
*/ | ||
|
||
import { CheDashboardConfigurationService } from '../../components/branding/che-dashboard-configuration.service'; | ||
|
||
export class AdministrationConfigService { | ||
|
||
static $inject = [ | ||
'cheDashboardConfigurationService' | ||
]; | ||
|
||
private cheDashboardConfigurationService: CheDashboardConfigurationService; | ||
|
||
constructor( | ||
cheDashboardConfigurationService: CheDashboardConfigurationService, | ||
) { | ||
this.cheDashboardConfigurationService = cheDashboardConfigurationService; | ||
} | ||
|
||
allowAdministrationRoutes(): ng.IPromise<void> { | ||
return this.cheDashboardConfigurationService.allowRoutes('administration'); | ||
} | ||
|
||
} |
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
Oops, something went wrong.