[editor] Enable context popover pinning for tables, views and columns
@@ -1056,10 +1056,6 @@ from metadata.conf import has_navigator
self.sourceType = params.sourceType;
self.defaultDatabase = params.defaultDatabase;
self.close = hidePopover;
- self.pinEnabled = false;
- % if USE_NEW_SIDE_PANELS.get():
- self.pinEnabled = params.pinEnabled || false;
- % endif
var orientation = params.orientation || 'bottom';
self.contents = null;
self.resizeHelper = new ResizeHelper(orientation, self.leftAdjust, self.topAdjust);
@@ -1135,6 +1131,8 @@ from metadata.conf import has_navigator
self.isAsterisk = params.data.type === 'asterisk';
self.isView = params.data.type === 'view';
+ self.pinEnabled = params.pinEnabled && !self.isFunction && !self.isAsterisk && !self.isHdfs;
+
if (self.isDatabase) {
self.contents = new DatabaseContextTabs(self.data, self.sourceType, self.defaultDatabase);
self.title = self.data.identifierChain[self.data.identifierChain.length - 1].name;
