Continued migrating UI to vuetify 2
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<v-spacer slot="actions" />
|
||||
<v-btn
|
||||
slot="actions"
|
||||
flat
|
||||
text
|
||||
@click="$store.dispatch('popDialogStack')"
|
||||
>
|
||||
Done
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<v-btn
|
||||
:loading="loading"
|
||||
:disabled="context.editPermission === false"
|
||||
outline
|
||||
outlined
|
||||
style="width: 160px;"
|
||||
@click="rest"
|
||||
>
|
||||
|
||||
@@ -229,14 +229,14 @@
|
||||
</v-stepper>
|
||||
<template slot="actions">
|
||||
<v-btn
|
||||
flat
|
||||
text
|
||||
@click="$emit('pop')"
|
||||
>
|
||||
Cancel
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="step > 1"
|
||||
flat
|
||||
text
|
||||
@click="step--"
|
||||
>
|
||||
Back
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<v-spacer slot="actions" />
|
||||
<v-btn
|
||||
slot="actions"
|
||||
flat
|
||||
text
|
||||
@click="$store.dispatch('popDialogStack')"
|
||||
>
|
||||
Cancel
|
||||
|
||||
@@ -12,8 +12,12 @@
|
||||
data-id="insert-creature-property-fab"
|
||||
small
|
||||
>
|
||||
<v-icon>add</v-icon>
|
||||
<v-icon>close</v-icon>
|
||||
<v-icon v-if="fab">
|
||||
close
|
||||
</v-icon>
|
||||
<v-icon v-else>
|
||||
add
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
<template lang="html">
|
||||
<v-toolbar
|
||||
<v-app-bar
|
||||
app
|
||||
class="character-sheet-toolbar"
|
||||
:color="toolbarColor"
|
||||
:dark="isDark"
|
||||
:light="!isDark"
|
||||
clipped-right
|
||||
extended
|
||||
tabs
|
||||
dense
|
||||
>
|
||||
<v-toolbar-side-icon @click="toggleDrawer" />
|
||||
<v-toolbar-title>
|
||||
<v-app-bar-nav-icon @click="toggleDrawer" />
|
||||
<v-app-bar-title>
|
||||
<v-fade-transition
|
||||
mode="out-in"
|
||||
>
|
||||
@@ -18,13 +19,13 @@
|
||||
{{ $store.state.pageTitle }}
|
||||
</div>
|
||||
</v-fade-transition>
|
||||
</v-toolbar-title>
|
||||
</v-app-bar-title>
|
||||
<v-spacer />
|
||||
<v-fade-transition
|
||||
mode="out-in"
|
||||
>
|
||||
<div :key="$route.meta.title">
|
||||
<v-toolbar-items v-if="creature">
|
||||
<template v-if="creature">
|
||||
<v-menu
|
||||
bottom
|
||||
left
|
||||
@@ -64,8 +65,8 @@
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
<v-toolbar-side-icon @click="toggleRightDrawer" />
|
||||
</v-toolbar-items>
|
||||
<v-app-bar-nav-icon @click="toggleRightDrawer" />
|
||||
</template>
|
||||
</div>
|
||||
</v-fade-transition>
|
||||
<v-fade-transition
|
||||
@@ -83,7 +84,9 @@
|
||||
centered
|
||||
grow
|
||||
max="100px"
|
||||
color="primary"
|
||||
:value="$store.getters.tabById($route.params.id)"
|
||||
:background-color="toolbarColor"
|
||||
@change="e => $store.commit(
|
||||
'setTabForCharacterSheet',
|
||||
{id: $route.params.id, tab: e}
|
||||
@@ -115,7 +118,7 @@
|
||||
/>
|
||||
</div>
|
||||
</v-fade-transition>
|
||||
</v-toolbar>
|
||||
</v-app-bar>
|
||||
</template>
|
||||
|
||||
<script lang="js">
|
||||
@@ -142,7 +145,7 @@ export default {
|
||||
if (this.creature && this.creature.color){
|
||||
return this.creature.color;
|
||||
} else {
|
||||
return this.$vuetify.theme.secondary;
|
||||
return this.$vuetify.theme.themes.light.secondary;
|
||||
}
|
||||
},
|
||||
isDark(){
|
||||
|
||||
@@ -69,7 +69,6 @@
|
||||
</v-list-item-content>
|
||||
<v-list-item-action>
|
||||
<v-btn
|
||||
flat
|
||||
icon
|
||||
data-id="experience-info-button"
|
||||
@click="showExperienceList"
|
||||
@@ -79,7 +78,6 @@
|
||||
</v-list-item-action>
|
||||
<v-list-item-action>
|
||||
<v-btn
|
||||
flat
|
||||
icon
|
||||
data-id="experience-add-button"
|
||||
@click="addExperience"
|
||||
|
||||
@@ -11,10 +11,12 @@
|
||||
<rest-button
|
||||
:creature-id="creatureId"
|
||||
type="shortRest"
|
||||
class="ma-1"
|
||||
/>
|
||||
<rest-button
|
||||
:creature-id="creatureId"
|
||||
type="longRest"
|
||||
class="ma-1"
|
||||
/>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
@@ -41,7 +43,6 @@
|
||||
<v-list-item-action>
|
||||
<v-btn
|
||||
icon
|
||||
flat
|
||||
@click.stop="softRemove(buff._id)"
|
||||
>
|
||||
<v-icon>delete</v-icon>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<v-toolbar
|
||||
flat
|
||||
dense
|
||||
style="flex-grow: 0;"
|
||||
>
|
||||
<v-spacer />
|
||||
<v-switch
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
:model="model"
|
||||
:editing="editing"
|
||||
:flat="flat"
|
||||
style="flex-grow: 0;"
|
||||
@duplicate="duplicate"
|
||||
@remove="remove"
|
||||
@toggle-editing="editing = !editing"
|
||||
@@ -49,7 +50,7 @@
|
||||
class="layout justify-end"
|
||||
>
|
||||
<v-btn
|
||||
flat
|
||||
text
|
||||
@click="$store.dispatch('popDialogStack')"
|
||||
>
|
||||
Done
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<template slot="actions">
|
||||
<v-spacer />
|
||||
<v-btn
|
||||
flat
|
||||
text
|
||||
color="primary"
|
||||
@click="$store.dispatch('popDialogStack', node)"
|
||||
>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
class="layout justify-end"
|
||||
>
|
||||
<v-btn
|
||||
flat
|
||||
text
|
||||
:disabled="!valid"
|
||||
@click="$store.dispatch('popDialogStack', model)"
|
||||
>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
class="layout justify-end"
|
||||
>
|
||||
<v-btn
|
||||
flat
|
||||
text
|
||||
:disabled="!valid"
|
||||
@click="insertExperience"
|
||||
>
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
<v-spacer />
|
||||
<v-btn
|
||||
icon
|
||||
flat
|
||||
data-id="experience-add-button"
|
||||
@click="addExperience"
|
||||
>
|
||||
@@ -15,7 +14,6 @@
|
||||
</v-btn>
|
||||
<v-btn
|
||||
icon
|
||||
flat
|
||||
@click="recompute"
|
||||
>
|
||||
<v-icon>refresh</v-icon>
|
||||
@@ -37,7 +35,7 @@
|
||||
<v-icon style="font-size: 240px; width: 240px; height: 240px;">
|
||||
$vuetify.icons.baby_face
|
||||
</v-icon>
|
||||
<p class="headline">
|
||||
<p class="text-h5">
|
||||
No experiences
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -121,13 +121,13 @@
|
||||
<template slot="actions">
|
||||
<v-spacer />
|
||||
<v-btn
|
||||
flat
|
||||
text
|
||||
@click="$store.dispatch('popDialogStack')"
|
||||
>
|
||||
Cancel
|
||||
</v-btn>
|
||||
<v-btn
|
||||
flat
|
||||
text
|
||||
:disabled="!selectedNode"
|
||||
@click="insert"
|
||||
>
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
<v-list-item-action>
|
||||
<v-btn
|
||||
icon
|
||||
flat
|
||||
small
|
||||
@click.stop="remove(child)"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user