2019-01-29 23:13:28 +01:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import { Component, Prop } from 'vue-property-decorator'
|
|
|
|
|
|
|
|
|
|
import { ITodo } from '../../../model/index'
|
2019-01-30 02:01:04 +01:00
|
|
|
import { rescodes } from "@src/store/Modules/rescodes"
|
|
|
|
|
import { UserStore } from "@store"
|
2019-01-29 23:13:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
name: 'SubMenus'
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default class SubMenus extends Vue {
|
2019-01-30 02:01:04 +01:00
|
|
|
public selectPriority: [] = rescodes.selectPriority[UserStore.state.lang]
|
2019-01-29 23:13:28 +01:00
|
|
|
|
2019-01-30 02:01:04 +01:00
|
|
|
@Prop({ required: false }) menuPopupTodo: any[]
|
|
|
|
|
@Prop({ required: false }) itemtodo: ITodo[]
|
2019-01-29 23:13:28 +01:00
|
|
|
$q: any
|
|
|
|
|
|
2019-01-30 02:01:04 +01:00
|
|
|
clickMenu (field) {
|
|
|
|
|
this.$emit('clickMenu', field)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setPriority (field) {
|
|
|
|
|
this.$emit('setPriority', field)
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-29 23:13:28 +01:00
|
|
|
create () {
|
2019-01-30 02:01:04 +01:00
|
|
|
this.selectPriority = rescodes.selectPriority[UserStore.state.lang]
|
2019-01-29 23:13:28 +01:00
|
|
|
|
|
|
|
|
console.log('CREAZIONE')
|
|
|
|
|
}
|
|
|
|
|
}
|