Revision 60094
Added by Konstantinos Triantafyllou over 3 years ago
modules/uoa-monitor-portal/trunk/monitor_dashboard/src/app/topic/topic.component.ts | ||
---|---|---|
234 | 234 |
this.deleteOpen(childrenAction); |
235 | 235 |
} |
236 | 236 |
|
237 |
public deleteTopic(index = this.topicIndex) {
|
|
237 |
public deleteTopic() { |
|
238 | 238 |
let path: string[] = [ |
239 | 239 |
this.stakeholder._id, |
240 |
this.stakeholder.topics[index]._id |
|
240 |
this.stakeholder.topics[this.index]._id
|
|
241 | 241 |
]; |
242 | 242 |
let callback = (): void => { |
243 |
this.stakeholder.topics.splice(index, 1); |
|
243 |
this.stakeholder.topics.splice(this.index, 1);
|
|
244 | 244 |
}; |
245 |
this.delete('Topic has been successfully be deleted', path, callback, true);
|
|
245 |
this.delete('Topic has been successfully be deleted', path, callback, (this.topicIndex === this.index));
|
|
246 | 246 |
} |
247 | 247 |
|
248 | 248 |
public toggleCategory(index: number) { |
Also available in: Unified diff
[Monitor Dashboard | Trunk]: Fix a bug with delete topic