mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Adding Activity mockup.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user