From 49f49e36572376f6b901a73b1c01f632b0fc3988 Mon Sep 17 00:00:00 2001 From: Naumov Alexey Date: Fri, 17 Dec 2021 13:01:33 +0300 Subject: [PATCH] fix(plugin-connection-template): hide "From template" button if there is no data --- .../src/TemplateConnectionPluginBootstrap.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/packages/plugin-connection-template/src/TemplateConnectionPluginBootstrap.ts b/webapp/packages/plugin-connection-template/src/TemplateConnectionPluginBootstrap.ts index 327e1fcc05..9dd09cda84 100644 --- a/webapp/packages/plugin-connection-template/src/TemplateConnectionPluginBootstrap.ts +++ b/webapp/packages/plugin-connection-template/src/TemplateConnectionPluginBootstrap.ts @@ -34,8 +34,7 @@ export class TemplateConnectionPluginBootstrap extends Bootstrap { order: 1, titleGetter: this.getMenuTitle.bind(this), onClick: this.openConnectionsDialog.bind(this), - isHidden: () => !this.permissionsService.has(EPermission.public), - isDisabled: () => !this.templateConnectionsResource.data.length, + isHidden: () => !this.permissionsService.has(EPermission.public) || !this.templateConnectionsResource.data.length, }); }