revive SectionDeleteDialog
This commit is contained in:
@ -41,7 +41,7 @@
|
||||
<v-btn icon @click.stop="popSectionInfo(item.id)">
|
||||
<v-icon small color="grey lighten-1">info</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon @click.stop="popDelete(item.id)">
|
||||
<v-btn icon @click.stop="popSectionDelete(item.id)">
|
||||
<v-icon small color="grey lighten-1">delete</v-icon>
|
||||
</v-btn>
|
||||
</span>
|
||||
@ -132,6 +132,7 @@
|
||||
<AddProductDialog v-model="showAddProductDialog"/>
|
||||
<AddSectionDialog v-model="showAddSectionDialog"/>
|
||||
<SectionInfoDialog v-model="showSectionInfoDialog"/>
|
||||
<SectionDeleteDialog v-model="showSectionDeleteDialog"/>
|
||||
|
||||
</v-container>
|
||||
</template>
|
||||
@ -146,6 +147,7 @@ import DragListHeading from './DragListHeading'
|
||||
import AddProductDialog from './AddProductDialog'
|
||||
import AddSectionDialog from './AddSectionDialog'
|
||||
import SectionInfoDialog from './SectionInfoDialog'
|
||||
import SectionDeleteDialog from './SectionDeleteDialog'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -153,6 +155,7 @@ export default {
|
||||
AddProductDialog,
|
||||
AddSectionDialog,
|
||||
SectionInfoDialog,
|
||||
SectionDeleteDialog,
|
||||
//RawDisplayer,
|
||||
},
|
||||
|
||||
@ -160,6 +163,7 @@ export default {
|
||||
showAddProductDialog: false,
|
||||
showAddSectionDialog: false,
|
||||
showSectionInfoDialog: false,
|
||||
showSectionDeleteDialog: false,
|
||||
}),
|
||||
computed: {
|
||||
...mapState([
|
||||
@ -249,6 +253,11 @@ export default {
|
||||
this.showSectionInfoDialog = true
|
||||
},
|
||||
|
||||
popSectionDelete(id) {
|
||||
this.selectSection(id)
|
||||
this.showSectionDeleteDialog = true
|
||||
},
|
||||
|
||||
...mapActions([
|
||||
'selectSection',
|
||||
'reorderSection',
|
||||
|
||||
Reference in New Issue
Block a user