mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
26 lines
888 B
JavaScript
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)
|
|
}
|