Revision 54201
Added by Myrto Koukouli over 5 years ago
modules/uoa-repository-dashboard-gui/trunk/app/pages/sources/sources-register/register-datasource-shareable.component.html | ||
---|---|---|
10 | 10 |
<i class="fa fa-external-link" style="margin-right:3px;"></i>{{ sourceTitle }} |
11 | 11 |
</a> |
12 | 12 |
. <br> |
13 |
<span *ngIf="latestUpdate && (latestUpdate !== null)">
|
|
13 |
<span *ngIf="latestUpdate && (latestUpdate !== 'null')">
|
|
14 | 14 |
<b>Last Updated: </b>{{ latestUpdate }} |
15 | 15 |
</span> |
16 | 16 |
</div> |
modules/uoa-repository-dashboard-gui/trunk/app/pages/sources/sources-forms/datasource-update-form.component.ts | ||
---|---|---|
320 | 320 |
if (!this.showButton) { |
321 | 321 |
this.selectedRepo.registeredBy = this.authService.getUserEmail(); |
322 | 322 |
this.selectedRepo.registered = true; |
323 |
/*this.selectedRepo.registrationDate = new Date(Date.now());*/ //NOT NEEDED
|
|
323 |
this.selectedRepo.registrationDate = new Date(Date.now()); //NOT NEEDED ??
|
|
324 | 324 |
this.emittedInfo.emit(this.selectedRepo); |
325 | 325 |
} |
326 | 326 |
} |
modules/uoa-repository-dashboard-gui/trunk/app/pages/sources/sources-forms/datasource-create-form.component.ts | ||
---|---|---|
276 | 276 |
|
277 | 277 |
/* THE BELOW FIELDS ARE NOT SET IN GWT CODE*/ |
278 | 278 |
newRepo.datasourceType = this.mode; |
279 |
/*newRepo.dateOfCreation = new Date(Date.now());*/ // NOT NEEDED
|
|
279 |
newRepo.dateOfCreation = new Date(Date.now()); // NOT NEEDED ??
|
|
280 | 280 |
newRepo.registered = true; |
281 |
/*newRepo.registrationDate = new Date(Date.now());*/ // NOT NEEDED
|
|
281 |
newRepo.registrationDate = new Date(Date.now()); // NOT NEEDED ??
|
|
282 | 282 |
|
283 | 283 |
return newRepo; |
284 | 284 |
} |
Also available in: Unified diff
checking for null as a string in getLatestUpdate