libresign/src/init.js
Vitor Mattos 6ab29c0ac2
feat: add spdx headers
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-10-26 14:57:54 -03:00

26 lines
888 B
JavaScript

/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
// import store from './store'
// Init LibreSign
if (window.OCA && !window.OCA.LibreSign) {
Object.assign(window.OCA, { LibreSign: {} })
console.debug('OCA.LibreSign initialized')
}
// Enable NewFeature
window.OCA.LibreSign.enableFeature = (feature) => {
// store.dispatch('featureController/ENABLE_FEATURE', feature)
}
window.OCA.LibreSign.disableFeature = (feature) => {
// store.dispatch('featureController/DISABLE_FEATURE', feature)
}
window.OCA.LibreSign.getFeatures = () => {
// console.debug('Features: ', store.state.featureController.features)
// console.debug('Enabled Features: ', store.state.featureController.enabledFeatures)
}
window.OCA.LibreSign.setFeature = (feature) => {
// store.dispatch('featureController/SET_NEW_FEATURE', feature)
}