Skip to content

Commit 5ccb09d

Browse files
committed
add access button
1 parent 9d87f39 commit 5ccb09d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Zenergy/Zenergy/Scripts/Controllers/eventRegistrationPageController.js

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ zenergyApp.controller("eventRegistrationPageController", ["$scope", "$http", "to
7373
}
7474
}).then(function successCallback(responseEvent) {
7575
bootbox.alert("You just join this event !");
76+
}, function errorCallback(response) {
77+
bootbox.alert("You are already registered.");
7678
});
7779
};
7880

Zenergy/Zenergy/Views/Shared/_Layout.cshtml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
<ul ng-show="isAuthanticated()" class="nav navbar-nav">
2828
<li><a href="#Shop">Shop</a></li>
2929
</ul>
30+
<ul ng-show="isAuthanticated()" class="nav navbar-nav">
31+
<li><a href="#Events">Events</a></li>
32+
</ul>
3033
<ul ng-show="isAuthanticated()" class="nav navbar-nav navbar-right">
3134
<li><a href="#Cart"><span class="glyphicon glyphicon glyphicon-shopping-cart" aria-hidden="true"></span></a></li>
3235
<li class="dropdown">

0 commit comments

Comments
 (0)