Skip to content

Commit

Permalink
refactor rename twig header variable param. remove console.log debug …
Browse files Browse the repository at this point in the history
…files
  • Loading branch information
palmtreefrb authored and megahirt committed Feb 4, 2022
1 parent db4f9f8 commit a0b7b65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<breadcrumbs id="top" class="breadcrumbs d-none d-md-block"></breadcrumbs>
</div>
<ul class="nav navbar-nav">
<li class="nav-item" ng-if="$ctrl.project" id="settings-dropdown-button" uib-dropdown data-ng-class="{'app-settings-available': $ctrl.header.settings.length > 0 && $ctrl.currentUserIsProjectManager}">
<li class="nav-item" ng-if="$ctrl.isLexiconProject" id="settings-dropdown-button" uib-dropdown data-ng-class="{'app-settings-available': $ctrl.header.settings.length > 0 && $ctrl.currentUserIsProjectManager}">
<a id="settingsBtn" class="btn btn-primary my-auto" uib-dropdown-toggle title="Settings" href="#">
<i class="fa fa-cog iconPadding"></i><span>Settings</span>
</a>
Expand All @@ -95,7 +95,7 @@
{% endverbatim %}
</div>
</li>
<li class='nav-item' ng-if="$ctrl.showShareButton">
<li class='nav-item' ng-if="$ctrl.isLexiconProject">
<a id="shareBtn" class="btn btn-primary my-auto" title="Share" href="#"
ng-click="$ctrl.openShareWithOthersModal()">
<i class="fa fa-share-alt iconPadding"></i><span>Share</span>
Expand Down
10 changes: 0 additions & 10 deletions src/angular-app/bellows/core/navbar.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,6 @@ export class NavbarController implements angular.IController {
this.displayHeaderButtons =
(this.currentUserIsProjectManager || (this.project.allowSharing && this.session.data.userIsProjectMember));
}
console.log(`this.project: ${this.project}`);
console.log(`this.currentUserIsProjectManager: ${this.currentUserIsProjectManager}`);
console.log(`session.data.userProjectRole: ${session.data.userProjectRole}`);
console.log(`this.displayShareButton ${this.displayHeaderButtons}`);
console.log(`this.currentUserIsProjectManager ${this.currentUserIsProjectManager}`);
console.log(`this.project.allowSharing: ${this.project.allowSharing}`);
console.log(`this.session.data.userIsProjectMember: ${this.session.data.userIsProjectMember}`);

this.rights.canCreateProject =
session.hasSiteRight(this.sessionService.domain.PROJECTS, this.sessionService.operation.CREATE);
Expand All @@ -93,12 +86,9 @@ export class NavbarController implements angular.IController {
this.$scope.$on('$locationChangeStart', (event, next, current) => {
if (current.includes('/lexicon') && !current.includes('/new-project') && this.displayHeaderButtons) {
this.isLexiconProject = true;
console.log(`Current Path: ${location.pathname}`);
}else{
this.isLexiconProject = false;
}
console.log(`location pathname: ${location.pathname}, next: ${next}, current: ${current}`);
console.log(`this.isLexiconProject: ${this.isLexiconProject}`);
});
}

Expand Down

0 comments on commit a0b7b65

Please sign in to comment.