@webitel/ui-sdk 3.2.122 → 3.2.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -35,6 +35,10 @@ export const useCardStore = (namespace) => {
|
|
|
35
35
|
return store.dispatch(`${cardNamespace}/SET_ITEM_PROPERTY`, payload);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
function deleteItem(payload) {
|
|
39
|
+
return store.dispatch(`${cardNamespace}/DELETE_ITEM`, payload);
|
|
40
|
+
}
|
|
41
|
+
|
|
38
42
|
return {
|
|
39
43
|
namespace: cardNamespace,
|
|
40
44
|
id,
|
|
@@ -46,5 +50,6 @@ export const useCardStore = (namespace) => {
|
|
|
46
50
|
setId,
|
|
47
51
|
resetState,
|
|
48
52
|
setItemProp,
|
|
53
|
+
deleteItem,
|
|
49
54
|
};
|
|
50
55
|
};
|
|
@@ -40,6 +40,9 @@ export default class CardStoreModule extends BaseStoreModule {
|
|
|
40
40
|
RESET_ITEM_STATE: async (context) => {
|
|
41
41
|
context.commit('RESET_ITEM_STATE');
|
|
42
42
|
},
|
|
43
|
+
DELETE_ITEM: async (context, { id }) => {
|
|
44
|
+
await context.dispatch('api/DELETE_ITEM', {context, id});
|
|
45
|
+
},
|
|
43
46
|
};
|
|
44
47
|
|
|
45
48
|
mutations = {
|
|
@@ -151,6 +151,10 @@ const applicationsAccess = (value = true) => ({
|
|
|
151
151
|
_enabled: value,
|
|
152
152
|
_locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.OBJECTS}`,
|
|
153
153
|
},
|
|
154
|
+
[AdminSections.CHANGELOGS]: {
|
|
155
|
+
_enabled: value,
|
|
156
|
+
_locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.CHANGELOGS}`,
|
|
157
|
+
},
|
|
154
158
|
},
|
|
155
159
|
[WebitelApplications.AUDIT]: {
|
|
156
160
|
_enabled: value,
|