Skip to content

Commit

Permalink
renamings and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anatskiy committed Oct 5, 2016
1 parent 4635ff4 commit 482e0b2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 21 deletions.
@@ -0,0 +1,5 @@
name: masthead_test
icon: fa-repeat
type: masthead
tooltip: Masthead Plugin Test
visible: true
2 changes: 1 addition & 1 deletion config/plugins/webhooks/phdcomics/config/phdcomics.yaml
@@ -1,2 +1,2 @@
name: phdcomics
type: toolview
type: tools
5 changes: 0 additions & 5 deletions config/plugins/webhooks/topbar_test/config/topbar_test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion config/plugins/webhooks/xkcd/config/xkcd.yml
@@ -1,2 +1,2 @@
name: xkcd
type: toolview
type: tools
15 changes: 3 additions & 12 deletions lib/galaxy/webhooks/__init__.py
Expand Up @@ -22,22 +22,13 @@ def __init__(self, w_name, w_type, w_path):
self.config = {}

def to_dict(self):
res = {
return {
'name': self.name,
'type': self.type,
'styles': self.styles,
'script': self.script
'script': self.script,
'config': self.config
}
if self.type == 'topbar':
res.update({
'icon': self.config['icon'],
'url': self.config['url'] if 'url' in
self.config.keys() else '',
'tooltip': self.config['tooltip'] if 'tooltip' in
self.config.keys() else '',
'visible': self.config['visible']
})
return res


class WebhooksRegistry(object):
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/webhooks.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/mvc/webhooks.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 482e0b2

Please sign in to comment.