Adding Activity mockup.

This commit is contained in:
Gunther Brunner
2014-04-30 18:59:30 +09:00
parent e184cb7c85
commit efa5875d60
9 changed files with 96 additions and 4 deletions

View File

@@ -1,11 +1,15 @@
module.exports = function refreshPageDirective() {
module.exports = function refreshPageDirective($window) {
return {
restrict: 'E',
replace: true,
scope: {
},
template: require('./refresh-page.jade'),
link: function () {
link: function (scope) {
scope.reloadWindow = function () {
$window.location.reload()
}
// TODO: reload with $route.reload()
}
}

View File

@@ -1,3 +1,3 @@
button.btn.btn-sm.btn-primary-outline(ng-click='window.location.reload()')
button.btn.btn-sm.btn-primary-outline(ng-click='reloadWindow()')
i.fa.fa-refresh
span(translate) Refresh
span(translate) Refresh