mirror of
https://github.com/apache/superset.git
synced 2026-06-08 00:59:17 +00:00
Redirect to druid datasource page when the user wants to add slice. Also, provide a link to the table page (#625)
This commit is contained in:
committed by
Maxime Beauchemin
parent
b38590a0bb
commit
ea8a7ec1ba
@@ -1,4 +1,6 @@
|
||||
<script>
|
||||
var msg = "Click on a table link to create a Slice";
|
||||
window.location = "/r/msg/?url={{ '/tablemodelview/list/' }}&msg=" + msg;
|
||||
var msg = "Click on a datasource link to create a Slice, " +
|
||||
"or click on a table link <a href='/tablemodelview/list/'>here</a> " +
|
||||
"to create a Slice for a table";
|
||||
window.location = "/r/msg/?url={{ '/druiddatasourcemodelview/list/' }}&msg=" + msg;
|
||||
</script>
|
||||
|
||||
@@ -674,7 +674,7 @@ class R(BaseView):
|
||||
@expose("/msg/")
|
||||
def msg(self):
|
||||
"""Redirects to specified url while flash a message"""
|
||||
flash(request.args.get("msg"), "info")
|
||||
flash(Markup(request.args.get("msg")), "info")
|
||||
return redirect(request.args.get("url"))
|
||||
|
||||
appbuilder.add_view_no_menu(R)
|
||||
|
||||
Reference in New Issue
Block a user