Skip to content

Commit 150fe91

Browse files
committed
beta04, corrected issues with the analyze incident menu
1 parent f62c125 commit 150fe91

File tree

6 files changed

+65912
-33
lines changed

6 files changed

+65912
-33
lines changed

src/Server/Coderr.Server.Web/ClientApp/components/analyze/incidents/incident.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export default class AnalyzeIncidentComponent extends Vue {
7474
}
7575

7676
private loadIncident(id: number) {
77+
if (!id) {
78+
throw new Error("Expected an incidentId.");
79+
}
80+
7781
this.incidentId = id;
7882
AppRoot.Instance.incidentService.get(id)
7983
.then(incident => {

src/Server/Coderr.Server.Web/ClientApp/components/analyze/menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default class AnalyzeMenuComponent extends Vue {
5757
}
5858

5959
var newIncidentId = parseInt(value, 10);
60-
60+
6161
//ignore subroutes to same incident.
6262
if (this.incidentId === newIncidentId) {
6363
return;

src/Server/Coderr.Server.Web/ClientApp/components/analyze/menu.vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</button>
1010
<div class="dropdown-menu" aria-labelledby="myIncidentsBtn">
1111
<h6 class="dropdown-header">Select one of your incidents</h6>
12-
<router-link class="dropdown-item" to="{ name: 'analyzeIncident', params: {incidentId: item.incidentId.toString() }" v-for="item in incidents" :key="item.incidentId">
12+
<router-link class="dropdown-item" :to="{ name: 'analyzeIncident', params: {incidentId: item.incidentId.toString() }}" v-for="item in incidents" :key="item.incidentId">
1313
{{item.title}}
1414
</router-link>
1515
</div>

src/Server/Coderr.Server.Web/Coderr.Server.Web.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
77
<IsPackable>false</IsPackable>
88
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
9+
<Version>2.0.0-beta04</Version>
910
</PropertyGroup>
1011

1112
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">

src/Server/Coderr.Server.Web/wwwroot/dist/main.js

Lines changed: 65904 additions & 30 deletions
Large diffs are not rendered by default.

src/Server/Coderr.Server.Web/wwwroot/dist/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)