3 Commits
2.0.1 ... 2.0.2

Author SHA1 Message Date
70fe066cdd Merge branch 'release/2.0.2' 2018-05-29 01:08:07 -04:00
c9431f62ef - profiles service fixes 2018-05-29 01:07:25 -04:00
58b25b0a44 Merge tag '2.0.1' into develop
no message
2018-05-29 00:37:55 -04:00

View File

@@ -67,16 +67,16 @@ export class ProfileService {
)
}
getNextProfile(id, type) {
var nextIdIndex = this.idMap[id] + 1;
nextIdIndex = nextIdIndex >= this.profiles.length ? 0 : nextIdIndex;
return this.profiles[nextIdIndex];
getNextProfile(id, type = 'all') {
var nextIdIndex = this.idMap[type][id] + 1;
nextIdIndex = nextIdIndex >= this.profiles[type].length ? 0 : nextIdIndex;
return this.profiles[type][nextIdIndex];
}
getPreviousProfile(id, type) {
var prevIdIndex = this.idMap[id] + 1;
prevIdIndex = prevIdIndex < 0 ? (this.profiles.length - 1) : prevIdIndex;
return this.profiles[prevIdIndex];
getPreviousProfile(id, type = 'all') {
var prevIdIndex = this.idMap[type][id] - 1;
prevIdIndex = prevIdIndex < 0 ? (this.profiles[type].length - 1) : prevIdIndex;
return this.profiles[type][prevIdIndex];
}
getProfiles() {