random stuff
This commit is contained in:
parent
98df1eb97d
commit
89208e2d38
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<md-toolbar class="md-primary">
|
<md-toolbar class="md-primary">
|
||||||
|
|
||||||
|
|
||||||
<md-button class="md-icon-button" @click="showDrawerClicked">
|
<md-button class="md-icon-button" @click="showDrawerClicked">
|
||||||
<md-icon>menu</md-icon>
|
<md-icon>menu</md-icon>
|
||||||
</md-button>
|
</md-button>
|
||||||
@ -11,12 +10,12 @@
|
|||||||
|
|
||||||
<md-progress-spinner
|
<md-progress-spinner
|
||||||
v-if="processing"
|
v-if="processing"
|
||||||
class="md-accent"
|
class="white-spinner"
|
||||||
md-mode="indeterminate"
|
md-mode="indeterminate"
|
||||||
:md-stroke="4"
|
:md-stroke="4"
|
||||||
:md-diameter="35" />
|
:md-diameter="35" />
|
||||||
|
|
||||||
<md-button class="md-raised" :disabled="!applyEnabled" @click="applyClicked">Apply</md-button>
|
<md-button class="md-raised" :disabled="!(modelChanged && !processing)" @click="applyClicked">Apply</md-button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</md-toolbar>
|
</md-toolbar>
|
||||||
@ -30,7 +29,7 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
applyEnabled: {
|
modelChanged: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
}
|
}
|
||||||
@ -46,6 +45,9 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<!-- This isn't scoped either -->
|
||||||
|
<style>
|
||||||
|
.white-spinner .md-progress-spinner-draw .md-progress-spinner-circle {
|
||||||
|
stroke: white;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -2,7 +2,7 @@
|
|||||||
<div class="page-container md-layout-column" id="dashboard-container">
|
<div class="page-container md-layout-column" id="dashboard-container">
|
||||||
|
|
||||||
<!-- toolbar -->
|
<!-- toolbar -->
|
||||||
<toolbar @showDrawerClicked="showDrawer = true"/>
|
<toolbar @showDrawerClicked="showDrawer = true" :processing="false" :model-changed="true"/>
|
||||||
|
|
||||||
<!-- drawer -->
|
<!-- drawer -->
|
||||||
<md-drawer :md-active.sync="showDrawer" md-swipeable>
|
<md-drawer :md-active.sync="showDrawer" md-swipeable>
|
||||||
|
Loading…
Reference in New Issue
Block a user