Skip to content

Commit 5268dfa

Browse files
authored
Merge pull request #216 from aau-network-security/feature/add-vpn-browser-event-#000
update event modal to select browser+vpn events
2 parents 7dc811d + aed7bda commit 5268dfa

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

client/src/components/EventModal.vue

+19-16
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,28 @@
66
<b-carousel-slide class="carousel-height">
77
<template slot="img" class="h-100 text-center">
88
<div class="row h-50">
9-
<div class="col-6 carousel-height d-table">
10-
<div class="card card-body d-table-cell align-middle text-center border-aau-color selection-phase-div" v-on:click="selectedVPNOption(true)">
11-
<h3 class="font-weight-bold">VPN ONLY</h3>
12-
<p>Allows the users to connect the Lab using the VPN. Kali Linux machine on the browser will be not available.</p>
13-
</div>
14-
</div>
15-
<div class="col-6 carousel-height d-table">
16-
<div class="card card-body d-table-cell align-middle text-center border-aau-color bg-light-gray selection-phase-div" v-on:click="selectedVPNOption(false)">
9+
10+
<div class="col-4 carousel-height d-table">
11+
<div class="card card-body d-table-cell align-middle text-center border-aau-color selection-phase-div" v-on:click="selectedVPNOption(0)">
1712
<h3 class="font-weight-bold">NO VPN</h3>
1813
<p>Allows the user to connect Kali Linux machine on the browser.</p>
1914
</div>
2015
</div>
16+
17+
<div class="col-4 carousel-height d-table">
18+
<div class="card card-body d-table-cell align-middle text-center border-aau-color selection-phase-div" v-on:click="selectedVPNOption(2)">
19+
<h3 class="font-weight-bold">VPN + BROWSER</h3>
20+
<p>Allows the user to connect Kali Linux machine on the browser and provide VPN connection.</p>
21+
</div>
22+
</div>
23+
24+
<div class="col-4 carousel-height d-table">
25+
<div class="card card-body d-table-cell align-middle text-center border-aau-color selection-phase-div" v-on:click="selectedVPNOption(1)">
26+
<h3 class="font-weight-bold">VPN ONLY</h3>
27+
<p>Allows the users to connect the Lab using the VPN. Kali Linux machine on the browser will be not available.</p>
28+
</div>
29+
</div>
30+
2131
</div>
2232
</template>
2333
</b-carousel-slide>
@@ -163,10 +173,6 @@
163173
</b-tooltip>
164174
</b-col>
165175
</b-row>
166-
<div class="custom-control custom-switch mt-2 mt-sm-2 mt-md-0">
167-
<input type="checkbox" class="custom-control-input" id="isVPNON" v-model="isVPNON" name="isVPNON">
168-
<label class="custom-control-label" for="isVPNON">Enable VPN</label>
169-
</div>
170176
</b-col>
171177
</b-row>
172178
<b-col md="12" class="mt-3 mt-lg-0" style="z-index: 2">
@@ -530,7 +536,7 @@ export default {
530536
disabledDates: {
531537
to: new Date(Date.now() - 8640000)
532538
},
533-
isVPNON: false,
539+
isVPNON: 4,
534540
}
535541
},
536542
mounted: function(){
@@ -800,9 +806,6 @@ export default {
800806
801807
},
802808
selectedVPNOption: function (isVPN) {
803-
if (isVPN) {
804-
this.frontends.push("VPN")
805-
}
806809
this.isVPNON = isVPN
807810
this.$refs.createEventCarousel.next()
808811
}

0 commit comments

Comments
 (0)