-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a service for reloading the dataSet object. Changing the permis…
…sion, i.e. sharing or unsharing data sets, causes a hard reset / reload of the data set list to see changes immediately.
- Loading branch information
Showing
5 changed files
with
60 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
angular | ||
.module('refineryDashboard') | ||
.factory('dashboardDataSetReloadService', ['$q', | ||
function ($q) { | ||
return { | ||
/** | ||
* Interface for the getter | ||
* @param {number} offset First item returned by the API. | ||
* @param {number} limit Number of items returned by the API. | ||
* @return {object} Angular promise. | ||
*/ | ||
reload: function () {}, | ||
/** | ||
* Switch getter with a custom function. | ||
* @param {function} sourceFunction The actualy source function, e.g. | ||
* | ||
*/ | ||
setReload: function (sourceFunction) { | ||
this.reload = sourceFunction; | ||
} | ||
}; | ||
} | ||
]); |
Empty file.