Log-in/Log-out prototyp
This commit is contained in:
1 parent
1523cc93c2
commit
24642ca1a8
3 files changed
+43
-17
No files matched your search
+13
-5
@@ -8,14 +8,18 @@ Vue.component('login-panel', {
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
User (Ohmportal):<br>
|
||||
<input type=text length=20 ref=userField v-model=user><br>
|
||||
Password:<br>
|
||||
<input type=password length=20 v-model=pwd><br>
|
||||
<div class="form-group">
|
||||
<label class="bmd-label-floating"> User (Ohmportal)</label>
|
||||
<input type="text" class="form-control" length=20 ref=userField v-model=user>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="bmd-label-floating">Password</label>
|
||||
<input type=password class="form-control" length=20 v-model=pwd>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary">Login</button>
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal" v-on:click="closeLogin(this.Event)">Login</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal" v-on:click="closeLogin(this.Event)">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -28,6 +32,10 @@ Vue.component('login-panel', {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
logIn(event){
|
||||
this.$emit('clicked', true)
|
||||
},
|
||||
|
||||
closeLogin (event) {
|
||||
this.$emit('clicked', false)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user