- dialog confirm delete item
- fix: context-menu (right click) declared only once and using twice using: @click.native="$refs.popover.$refs.popup.show()"
This commit is contained in:
@@ -9,7 +9,12 @@ const state: IGlobalState = {
|
||||
mobileMode: false,
|
||||
menuCollapse: true,
|
||||
leftDrawerOpen: true,
|
||||
posts: []
|
||||
posts: [],
|
||||
listatodo: [
|
||||
{namecat: 'personal', description: 'personal'},
|
||||
{namecat: 'work', description: 'work'},
|
||||
{namecat: 'shopping', description: 'shopping'}
|
||||
]
|
||||
}
|
||||
|
||||
const b = storeBuilder.module<IGlobalState>('GlobalModule', state)
|
||||
@@ -18,10 +23,15 @@ const b = storeBuilder.module<IGlobalState>('GlobalModule', state)
|
||||
namespace Getters {
|
||||
|
||||
const conta = b.read(state => state.conta, 'conta')
|
||||
const listatodo = b.read(state => state.listatodo, 'listatodo')
|
||||
|
||||
export const getters = {
|
||||
get conta() {
|
||||
return conta()
|
||||
},
|
||||
|
||||
get listaTodo() {
|
||||
return listatodo()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,8 @@ export const rescodes = {
|
||||
DELETE: 100,
|
||||
TOGGLE_EXPIRING: 101,
|
||||
COMPLETED: 110,
|
||||
PROGRESS_BAR: 120
|
||||
PROGRESS_BAR: 120,
|
||||
PRIORITY: 130
|
||||
},
|
||||
|
||||
|
||||
@@ -79,28 +80,35 @@ export const rescodes = {
|
||||
menuPopupTodo: {
|
||||
'it': [
|
||||
{
|
||||
id: 1,
|
||||
label: 'Progressi',
|
||||
id: 10,
|
||||
label: '',
|
||||
value: 120, // PROGRESS_BAR
|
||||
icon: 'check_circle',
|
||||
icon: 'rowing',
|
||||
checked: true
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
id: 20,
|
||||
label: 'Imposta Priorità',
|
||||
value: 130, // PRIORITY
|
||||
icon: 'rowing',
|
||||
checked: false
|
||||
},
|
||||
{
|
||||
id: 30,
|
||||
label: 'Completato',
|
||||
value: 110, // COMPLETED
|
||||
icon: 'check_circle',
|
||||
checked: true
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
id: 40,
|
||||
label: 'Imposta Scadenza',
|
||||
value: 101, // TOGGLE_EXPIRING
|
||||
icon: 'date_range',
|
||||
checked: true
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
id: 50,
|
||||
label: 'Cancella',
|
||||
value: 100, // DELETE
|
||||
icon: 'delete',
|
||||
@@ -109,28 +117,35 @@ export const rescodes = {
|
||||
],
|
||||
'enUk': [
|
||||
{
|
||||
id: 1,
|
||||
label: 'Progress',
|
||||
id: 10,
|
||||
label: '',
|
||||
value: 120, // PROGRESS_BAR
|
||||
icon: 'check_circle',
|
||||
checked: true
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
id: 20,
|
||||
label: 'Set Priority',
|
||||
value: 130, // PRIORITY
|
||||
icon: 'high_priority',
|
||||
checked: false
|
||||
},
|
||||
{
|
||||
id: 30,
|
||||
label: 'Completed',
|
||||
value: 110, // COMPLETED
|
||||
icon: 'check_circle',
|
||||
checked: true
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
id: 40,
|
||||
label: 'Set Expiring',
|
||||
value: 101, // TOGGLE_EXPIRING
|
||||
icon: 'date_range',
|
||||
checked: true
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
id: 50,
|
||||
label: 'Delete',
|
||||
value: 100, // DELETE
|
||||
icon: 'trash',
|
||||
|
||||
Reference in New Issue
Block a user