[develop | DONE | CHANGED] adminToolsAPIURL: remove property from function parameters, update submodule

This commit is contained in:
Alex Martzios 2024-09-13 09:59:37 +03:00
parent 448c50b430
commit 03cbc12f8f
3 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ function buildCss(portal: string, suffix = null, variables: {} = null, customCss
}
function buildAll(res: Response = null) {
let layoutsURL = properties.adminToolsAPIURL + '/community/layouts';
let layoutsURL = properties.adminToolsAPIURL + 'community/layouts';
axios.get(layoutsURL).then(response => {
if (response.data && Array.isArray(response.data) && response.data.length > 0) {
response.data.forEach((layout: Layout) => {

View File

@ -88,11 +88,11 @@ export class CommunityComponent {
getPagePlugins() {
this.showLoading = true;
this.subscriptions.push(this._pluginsService.getPluginTemplatesByPageRoute(this.properties.adminToolsAPIURL, this.community.communityId, this._router.url.split('?')[0] ).subscribe(
this.subscriptions.push(this._pluginsService.getPluginTemplatesByPageRoute(this.community.communityId, this._router.url.split('?')[0] ).subscribe(
templates => {
this.pluginTemplates = templates;
this.subscriptions.push(this._pluginsService.getPluginsByPageRoute(this.properties.adminToolsAPIURL, this.community.communityId, this._router.url.split('?')[0]).subscribe(
this.subscriptions.push(this._pluginsService.getPluginsByPageRoute(this.community.communityId, this._router.url.split('?')[0]).subscribe(
plugins => {
this.plugins = plugins;
this.pluginsByPlacement = new Map();

@ -1 +1 @@
Subproject commit 49528c98746591fe519c49944119274fbb97efb3
Subproject commit 1593ea6ed9e62931800b62f4d4d4787228043d51