pooted stuff into components

This commit is contained in:
2020-12-04 22:22:17 +01:00
parent 6c934187e3
commit 98df1eb97d
4 changed files with 170 additions and 83 deletions

View File

@@ -0,0 +1,51 @@
<template>
<md-toolbar class="md-primary">
<md-button class="md-icon-button" @click="showDrawerClicked">
<md-icon>menu</md-icon>
</md-button>
<span class="md-title">VideON</span>
<div class="md-toolbar-section-end">
<md-progress-spinner
v-if="processing"
class="md-accent"
md-mode="indeterminate"
:md-stroke="4"
:md-diameter="35" />
<md-button class="md-raised" :disabled="!applyEnabled" @click="applyClicked">Apply</md-button>
</div>
</md-toolbar>
</template>
<script>
export default {
name: "ToolbarContent",
props: {
processing: {
type: Boolean,
default: false
},
applyEnabled: {
type: Boolean,
default: false
}
},
methods: {
showDrawerClicked() {
this.$emit("showDrawerClicked");
},
applyClicked() {
this.$emit("applyClicked");
}
}
}
</script>
<style scoped>
</style>