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:
parent
b38590a0bb
commit
ea8a7ec1ba
|
|
@ -1,4 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
var msg = "Click on a table link to create a Slice";
|
var msg = "Click on a datasource link to create a Slice, " +
|
||||||
window.location = "/r/msg/?url={{ '/tablemodelview/list/' }}&msg=" + msg;
|
"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>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -674,7 +674,7 @@ class R(BaseView):
|
||||||
@expose("/msg/")
|
@expose("/msg/")
|
||||||
def msg(self):
|
def msg(self):
|
||||||
"""Redirects to specified url while flash a message"""
|
"""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"))
|
return redirect(request.args.get("url"))
|
||||||
|
|
||||||
appbuilder.add_view_no_menu(R)
|
appbuilder.add_view_no_menu(R)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue