diff --git a/src/Site/views/languageforge/container/languageforge.html.twig b/src/Site/views/languageforge/container/languageforge.html.twig
index 9b48bf6ad1..61aa16e198 100644
--- a/src/Site/views/languageforge/container/languageforge.html.twig
+++ b/src/Site/views/languageforge/container/languageforge.html.twig
@@ -81,7 +81,7 @@
- -
+
-
Settings
@@ -95,7 +95,7 @@
{% endverbatim %}
- -
+
-
Share
diff --git a/src/Site/views/languageforge/theme/default/sass/_global.scss b/src/Site/views/languageforge/theme/default/sass/_global.scss
index 2767afa19a..0924148c17 100644
--- a/src/Site/views/languageforge/theme/default/sass/_global.scss
+++ b/src/Site/views/languageforge/theme/default/sass/_global.scss
@@ -264,18 +264,6 @@
}
}
- #settings-dropdown-button:not(.app-settings-available) {
- .dropdown-toggle {
- visibility: hidden;
- }
- }
-
- #settings-dropdown-button.app-settings-available {
- .dropdown-toggle {
- visibility: visible;
- }
- }
-
#settingsBtn {
margin: 12px;
margin-right: 6px;
@@ -287,7 +275,7 @@
font-size: 1rem;
}
}
-
+
#settingsBtn::after {
display:none;
}
diff --git a/src/angular-app/bellows/core/navbar.controller.ts b/src/angular-app/bellows/core/navbar.controller.ts
index e72d50839b..b1430a718f 100644
--- a/src/angular-app/bellows/core/navbar.controller.ts
+++ b/src/angular-app/bellows/core/navbar.controller.ts
@@ -21,7 +21,7 @@ export class NavbarController implements angular.IController {
project: Project;
interfaceConfig: InterfaceConfig;
currentUserIsProjectManager: boolean;
- displayHeaderButtons: boolean;
+ displayShareButton: boolean;
projectTypeNames: ProjectTypeNames;
siteName: string;
isLexiconProject: boolean = false;
@@ -29,7 +29,7 @@ export class NavbarController implements angular.IController {
static $inject = [
'$scope',
'$uibModal',
- 'projectService',
+ 'projectService',
'sessionService',
'offlineCacheUtils',
'applicationHeaderService'];
@@ -75,7 +75,7 @@ export class NavbarController implements angular.IController {
this.currentUserIsProjectManager =
(session.data.userProjectRole === ProjectRoles.MANAGER.key) ||
(session.data.userProjectRole === ProjectRoles.TECH_SUPPORT.key);
- this.displayHeaderButtons =
+ this.displayShareButton =
(this.currentUserIsProjectManager || (this.project.allowSharing && this.session.data.userIsProjectMember));
}
@@ -84,9 +84,9 @@ export class NavbarController implements angular.IController {
this.siteName = session.baseSite();
});
this.$scope.$on('$locationChangeStart', (event, next, current) => {
- if (current.includes('/lexicon') && !current.includes('/new-project') && this.displayHeaderButtons) {
+ if (current.includes('/lexicon') && !current.includes('/new-project')) {
this.isLexiconProject = true;
- }else{
+ } else {
this.isLexiconProject = false;
}
});