This commit is contained in:
12
frontend/app/services/Campaign.js
Normal file
12
frontend/app/services/Campaign.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export const useCampaignService = () => {
|
||||
const Campaign = useState('campaign', () => null)
|
||||
|
||||
const SetCampaign = (data) => {
|
||||
Campaign.value = data;
|
||||
}
|
||||
|
||||
return {
|
||||
Campaign,
|
||||
SetCampaign
|
||||
}
|
||||
}
|
||||
@@ -34,9 +34,15 @@ const defWindows = {
|
||||
component: () => import('~/components/windows/CreateCampaignWindow.vue'),
|
||||
close: () => ClearWindow({type: 'create_campaign'}),
|
||||
movable: true
|
||||
},
|
||||
create_note: {
|
||||
title: "Create note",
|
||||
component: () => import('~/components/windows/CreateNoteWindow.vue'),
|
||||
close: () => ClearWindow({type: 'create_note'}),
|
||||
movable: true
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
defWindows
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user