Separate errors and make them dissmissable

This commit is contained in:
Tim 2021-07-28 23:44:08 +02:00
parent c3e203e9d4
commit 4fed74102e

View File

@ -1,13 +1,20 @@
<template> <template>
<div> <div>
<div class="md-layout" v-if="error" @click="error = null">
<div class="md-layout-item">
<md-app>
<md-app-content>
Error: <br>
{{ error }}
</md-app-content>
</md-app>
</div>
</div>
<br>
<div class="md-layout"> <div class="md-layout">
<div class="md-layout-item"> <div class="md-layout-item">
<md-app> <md-app>
<md-app-content> <md-app-content>
<div v-if="error">
Errors: <br>
{{ error }}
</div>
<md-field> <md-field>
<label>Name</label> <label>Name</label>
<md-input v-model="name" :readonly="gameJoined"></md-input> <md-input v-model="name" :readonly="gameJoined"></md-input>