add provide to vuejs plugins FhcAlert, FhcApi and Phrasen so they are also useable with inject in composition api

This commit is contained in:
Harald Bamberger
2024-10-17 16:37:27 +02:00
parent 24ce443e95
commit 755e8dd222
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -394,5 +394,6 @@ export default {
}
};
app.config.globalProperties.$fhcAlert = $fhcAlert;
app.provide('$fhcAlert', app.config.globalProperties.$fhcAlert);
}
}
+1 -1
View File
@@ -316,6 +316,6 @@ export default {
const mergedFhcApiFactory = options?.factory ? {...FhcApiFactory, ...options.factory} : FhcApiFactory;
app.config.globalProperties.$fhcApi.factory = new FhcApiFactoryWrapper(mergedFhcApiFactory);
app.provide('$fhcApi', app.config.globalProperties.$fhcApi);
}
};
+1
View File
@@ -69,5 +69,6 @@ export default {
loadCategory: cat => phrasen.loadCategory.call(app, cat),
t_ref: phrasen.t_ref
};
app.provide('$p', app.config.globalProperties.$p);
}
}