Skip to content
Snippets Groups Projects
Commit acfa08a7 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #473 from metabase/uberjar_fix

uberjar client resources and npm dependency fixes
parents 79182855 6a1a0918
No related branches found
No related tags found
No related merge requests found
......@@ -39,9 +39,9 @@ Corvus.config(['$routeProvider', '$locationProvider', function($routeProvider, $
template: '',
controller: 'Homepage',
resolve: {
appState: function(AppState) {
appState: ["AppState", function(AppState) {
return AppState.init();
}
}]
}
});
......@@ -68,7 +68,7 @@ Corvus.config(['$routeProvider', '$locationProvider', function($routeProvider, $
});
}]);
Corvus.run(function(AppState, editableOptions, editableThemes) {
Corvus.run(["AppState", "editableOptions", "editableThemes", function(AppState, editableOptions, editableThemes) {
// initialize app state
AppState.init();
......@@ -78,14 +78,14 @@ Corvus.run(function(AppState, editableOptions, editableThemes) {
// overwrite submit button template
editableThemes['default'].submitTpl = '<button class="Button Button--primary" type="submit">Save</button>';
editableThemes['default'].cancelTpl = '<button class="Button" ng-click="$form.$cancel()">cancel</button>';
});
}]);
if (document.location.hostname != "localhost") {
// Only set up logging in production
Corvus.config(function(AngularyticsProvider) {
Corvus.config(["AngularyticsProvider", function(AngularyticsProvider) {
AngularyticsProvider.setEventHandlers(['Console', 'GoogleUniversal']);
}).run(function(Angularytics) {
}]).run(["Angularytics", function(Angularytics) {
Angularytics.init();
});
}]);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment