Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #34 from jaylenw/ghi-31
Browse files Browse the repository at this point in the history
feat(menu): provide links to the repo and password reset
  • Loading branch information
jaylenw authored Jul 4, 2020
2 parents e7416ca + 028a577 commit 309236c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions www/js/controllers/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ angular.module('starter.controllers', [])
$window.location.href = "#/app/notes/" + index;
}

// open external link in the system's browser
$scope.openExternalLink = function(url, target) {
window.open(url, target);
}

//*******************************************************
//*******************************************************
//**********NEW NOTE MODAL*******************************
Expand Down
6 changes: 6 additions & 0 deletions www/templates/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ <h1 class="title">Menu</h1>
<ion-item menu-close ng-hide="token" ng-click="register()">
Register <i class="icon ion-ios-personadd-outline"></i>
</ion-item>
<ion-item menu-close ng-hide="token" ng-click="openExternalLink('https://nota.jaylenwimbish.com/#/forgot', '_system')">
Request Password Reset <i class="icon ion-refresh"></i>
</ion-item>
<ion-item menu-close href="#/app/notes">
Notes <i class="icon ion-ios-paper-outline"></i>
</ion-item>
Expand All @@ -36,6 +39,9 @@ <h1 class="title">Menu</h1>
<ion-item menu-close ng-show="token" ng-click="createNote()">
Create New Note <i class="icon ion-ios-compose-outline"></i>
</ion-item>
<ion-item menu-close ng-click="openExternalLink('https://github.com/jaylenw/IonicTodoApp', '_system')">
GitHub Repository <i class="icon ion-social-github"></i>
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
Expand Down

0 comments on commit 309236c

Please sign in to comment.