vue/src/plugins/oikeustarkastelu.ts
Function install
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static install(vue: typeof Vue, config: OikeustarkasteluConfig) {
vue.prototype.$isAdmin = () => config.oikeusProvider.isAdmin?.value || false;
vue.prototype.$hasOphCrud = () => config.oikeusProvider.hasOphCrud?.value || false;
vue.prototype.$hasOikeus = function(oikeus: Oikeus, kohde?: any) {