Revision 58998
Added by Argiro Kokogiannaki almost 4 years ago
monitor.component.ts | ||
---|---|---|
115 | 115 |
subscription = this.stakeholderService.getStakeholderAsObservable().subscribe(stakeholder => { |
116 | 116 |
if (stakeholder) { |
117 | 117 |
this.stakeholder = stakeholder; |
118 |
if(stakeholder.isActive && (stakeholder.isPublic || this.isAdmin())) {
|
|
118 |
if(stakeholder.isActive && (stakeholder.isPublic || this.isPublicOrIsMember(stakeholder.isPublic))) {
|
|
119 | 119 |
this.seoService.createLinkForCanonicalURL(url, false); |
120 | 120 |
this._meta.updateTag({content: url}, "property='og:url'"); |
121 | 121 |
var description = "Monitor Dashboard | " + this.stakeholder.name; |
... | ... | |
238 | 238 |
if (this.activeCategory) { |
239 | 239 |
this.activeSubCategory = this.activeCategory.subCategories.find(subCategory => this.isPublicOrIsMember(subCategory.isPublic) && subCategory.isActive); |
240 | 240 |
if (this.activeSubCategory) { |
241 |
this.setSideBar(); |
|
242 | 241 |
this.setIndicators(); |
243 |
// } else { |
|
244 |
// this.navigateToError(); |
|
245 | 242 |
} |
246 |
// } else { |
|
247 |
// this.navigateToError(); |
|
248 | 243 |
} |
249 |
// } else { |
|
250 |
// this.navigateToError(); |
|
244 |
this.setSideBar(); |
|
251 | 245 |
} |
252 | 246 |
} |
253 | 247 |
} |
... | ... | |
399 | 393 |
} else { |
400 | 394 |
if (this.isViewPublic) { // preview for not members |
401 | 395 |
return false; |
402 |
} else if(this.user) {
|
|
396 |
} else if(this.isAdmin()) {
|
|
403 | 397 |
// if user is member, return true |
404 | 398 |
return true; |
405 | 399 |
} |
Also available in: Unified diff
[Monitor Dashboard|Trunk]
Admin:
-add monitor logo in left sidebar
-add stakeholder name and logo on the blue bar
-back button takes you to /admin
Monitor.component.html
manage buttons takes you to /admin
private preview to work if admin or curator