Commit 3e4d84ca authored by Jean Böhm's avatar Jean Böhm Committed by Anton Koch
Browse files

Resolve "Various fixes"

parent b4b6ed95
......@@ -21,6 +21,7 @@ size="md"
clickable
v-close-popup
:key="`dropdown-item-${i}`"
@click="itemClicked(item)"
)
q-item-section
q-item-label {{item.label}}
......@@ -38,6 +39,11 @@ export default {
hover: false,
show: false
}
},
methods: {
itemClicked (item) {
this.$emit('itemClicked', item)
}
}
}
</script>
......@@ -251,26 +251,3 @@ div
}
}
</script>
<style scoped lang="stylus">
tr
td
&:first-of-type
border-left-color transparent
&:last-of-type
td
border-bottom 0
&:hover
td
&:first-of-type
border-top-left-radius $border-radius
border-bottom-left-radius $border-radius
&:last-of-type
border-top-right-radius $border-radius
border-bottom-right-radius $border-radius
</style>
<template lang="pug">
.full-height
.full-height.cursor-pointer(@click="onHeadline(props)")
mb-headline.cursor-pointer(
mb-headline(
:title="props.value"
@click.native="onHeadline(props)"
)
</template>
......
......@@ -116,7 +116,5 @@ export default {
.mb-td
height auto
padding 0
&::before
border-radius $border-radius
</style>
......@@ -5,6 +5,7 @@
@import "styling/theming.styl"
@import "styling/typography.styl"
@import "styling/shadows.styl"
@import "styling/tables.styl"
#q-app
overflow hidden
......
.body--light
tr
td
border-bottom 1px solid $mb-light-50
border-left 1px solid $mb-light-50
&:first-of-type
border-left-color transparent
&:last-of-type
td
border-bottom 0
&:hover
td
background-color $mb-light-50
border-left-color transparent
.body--dark
tr
td
border-bottom 1px solid $mb-dark-50
border-left 1px solid $mb-dark-50
&:first-of-type
border-left-color transparent
&:last-of-type
td
border-bottom 0
&:hover
td
background-color $mb-dark-50
border-left-color transparent
......@@ -13,13 +13,6 @@ body
background $mb-black
.body--light
tr
td
border-bottom 1px solid $mb-light-50
border-left 1px solid $mb-light-50
&:hover
td
background-color $mb-light-20
a
.mb-headline
......@@ -52,13 +45,6 @@ body
background-color rgba(255, 255, 255, .8) !important
.body--dark
tr
td
border-bottom 1px solid $mb-dark-50
border-left 1px solid $mb-dark-50
&:hover
td
background-color $mb-dark-20
a
.mb-headline
......
......@@ -40,5 +40,7 @@ export default {
updated: 'Updated',
user: 'User',
userInformation: 'User Information',
yes: 'Yes'
yes: 'Yes',
last_edited: 'Last edited',
add_new: 'Add new'
}
......@@ -77,6 +77,9 @@
br
div items :
span.text-mb-green-100 Array
template(slot="events")
div @itemClicked :
span.text-mb-red-100 item
template(slot="examples")
mb-btn-dropdown(label="Dropdown Button" :items="dropdownItems")
......
......@@ -25,11 +25,8 @@ div
.mb-content-inner.q-py-lg
q-item.q-pa-none
q-item-section
mb-headline(:title="$t('general.assets')")
q-item-section(avatar)
q-item-section(side)
div
// upload button
......
......@@ -3,7 +3,7 @@
// recent activities -----------------------------------------------------------------------------------------------
.q-my-xl
mb-headline(title="last edited abc")
mb-headline(:title="$t('general.last_dited')")
mb-swiper(:slides-per-view="3")
mb-swiper-slide(v-for="n in 10" :key="n")
mb-card(
......@@ -22,18 +22,18 @@
q-item-section(avatar)
// add button
mb-icon-btn.q-mb-md(
@click.native="model.dialog = true"
icon-name="add"
:outline="true"
mb-btn-dropdown(
:label="$t('general.add_new')"
:items="[ { label: 'Timeline' }, { label: 'Grid'} ]"
@itemClicked="createNew"
)
// add dialog
mb-dialog(
v-model="model.dialog"
label="Add"
v-model="create.modelDialog"
:label="`Add ${create.type}`"
)
dialog-create-project(type="Timeline")
dialog-create-project(:type="create.type")
// table
mb-table(
......@@ -58,8 +58,9 @@
components: { DialogCreateProject },
data () {
return {
model: {
dialog: false
create: {
modelDialog: false,
type: undefined
},
data: [],
resource: 'maps',
......@@ -121,6 +122,10 @@
catch (err) {
this.$q.notify({ message: this.$t('errors.generic', { error: err.message }), color: 'negative' })
}
},
createNew (obj) {
this.create.modelDialog = true
this.create.type = obj.label
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment