mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-24 17:11:43 +00:00
Added Save button
This commit is contained in:
parent
1dd24b5495
commit
04b2cb9f63
1 changed files with 19 additions and 3 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
<textarea placeholder="Description" v-model="description"></textarea>
|
<textarea placeholder="Description" v-model="description"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="button" v-if="showSaveButton">Save</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -31,10 +32,16 @@ export default {
|
||||||
return {
|
return {
|
||||||
privateServer: true,
|
privateServer: true,
|
||||||
description: '',
|
description: '',
|
||||||
|
showSaveButton: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
privateServer() {
|
||||||
|
this.showSaveButton = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
server() {
|
server() {
|
||||||
|
|
@ -50,6 +57,8 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
overflow: auto;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.details {
|
.details {
|
||||||
|
|
@ -60,6 +69,7 @@ export default {
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggle {
|
.toggle {
|
||||||
|
|
@ -121,14 +131,20 @@ export default {
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background: rgba(255, 0, 0, 0.719);
|
background: rgba(17, 148, 255, 0.692);
|
||||||
margin: auto;
|
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
-webkit-transition: 0.3s;
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
align-self: center;
|
||||||
|
margin-top: auto;
|
||||||
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
.button:hover {
|
.button:hover {
|
||||||
background: rgb(255, 0, 0);
|
background: rgb(17, 148, 255);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue