Skip to content

Commit 8ac5547

Browse files
committed
fix(client): exclude oauthButtons import if !oauth
1 parent 0f49edc commit 8ac5547

File tree

1 file changed

+4
-3
lines changed
  • templates/app/client/app/account(auth)

1 file changed

+4
-3
lines changed

Diff for: templates/app/client/app/account(auth)/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ import routing from './account.routes';
66
import login from './login';
77
import settings from './settings';
88
import signup from './signup';
9-
import oauthButtons from '../../components/oauth-buttons';
9+
<%_ if(filters.oauth) { _%>
10+
import oauthButtons from '../../components/oauth-buttons';<% } %>
1011

1112
export default angular.module('<%= scriptAppName %>.account', [
1213
uiRouter,
1314
login,
1415
settings,
15-
signup,
16-
oauthButtons
16+
signup<% if(filters.oauth) { %>,
17+
oauthButtons<% } %>
1718
])
1819
.config(routing)
1920
<%_ if (filters.ngroute) { _%>

0 commit comments

Comments
 (0)