Add context menu for materialized views

This commit is contained in:
Dan Sosedoff 2022-12-03 15:21:17 -06:00
parent bf6b2f8dda
commit d3ff23ddfe
No known key found for this signature in database
GPG Key ID: 26186197D282B164

View File

@ -1177,6 +1177,19 @@ function bindContextMenus() {
} }
}); });
} }
if (group == "materialized_view") {
$(el).contextmenu({
target: "#view_context_menu",
scopes: "li.schema-materialized_view",
onItem: function(context, e) {
var el = $(e.target);
var table = getQuotedSchemaTableName($(context[0]).data("id"));
var action = el.data("action");
performViewAction(table, action, el);
}
});
}
}); });
} }