Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Commit 7764929

Browse files
authored
Merge pull request #15 from ldsec/dev
MedCo v1.0.0
2 parents 45936a9 + a574f0c commit 7764929

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

src/app/models/query-models/explore-query.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class ExploreQuery {
1717
// the constraint of the query
1818
private _constraint: Constraint;
1919
// the type of the query
20-
private _type: ExploreQueryType = ExploreQueryType.COUNT_GLOBAL_OBFUSCATED;
20+
private _type: ExploreQueryType;
2121

2222
constructor(name?: string) {
2323
this.name = name;
@@ -34,7 +34,7 @@ export class ExploreQuery {
3434

3535
if (this.name) {
3636
// embed name without whitespaces if defined
37-
id = `${id}_${this.name.replace(/\s/g, "_")}`;
37+
id = `${id}_${this.name.replace(/\s/g, '_')}`;
3838
}
3939

4040
this.uniqueId = id;

src/app/modules/gb-main-module/gb-main.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- Top panel -->
44
<div class="gb-top-panel">
55
<span class="float-left">
6-
<b>Glowing Bear MedCo</b>
6+
<b>MedCo Web Client</b>
77
<img style="margin-left: 5px" width="20px" height="20px" src="assets/icons/medco-favicon-32x32.png" />
88
</span>
99
<span class="float-right">

src/app/services/query.service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ export class QueryService {
105105

106106
public execQuery(): void {
107107
if (!this.constraintService.hasConstraint()) {
108+
MessageHelper.alert('warn', 'No constraints specified, please correct.');
109+
return;
110+
} else if (!this.query.type) {
111+
MessageHelper.alert('warn', 'No query type specified, please correct.');
108112
return;
109113
}
110114

src/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>Glowing Bear MedCo</title>
5+
<title>MedCo Web Client</title>
66
<base href="/">
77

88
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -13,7 +13,7 @@
1313
<gb-app-root>
1414
<div class="loading-message">
1515
<div><img src="assets/loading.gif"></div>
16-
<div>Loading Glowing Bear MedCo ...</div>
16+
<div>Loading MedCo Web Client...</div>
1717
</div>
1818
</gb-app-root>
1919

0 commit comments

Comments
 (0)