UI cleanup for tasks

This commit is contained in:
Mark McDowall 2014-09-12 07:31:32 -07:00
parent 2b0ddb6131
commit 6b912a56f0
4 changed files with 21 additions and 13 deletions

View file

@ -16,10 +16,11 @@ define(
this.$el.empty();
var task = this.model.get('name');
var name = this.model.get('name');
var task = this.model.get('taskName');
this.$el.html(
'<i class="icon-cogs x-execute" title="Execute {0}"></i>'.format(task)
'<i class="icon-refresh icon-can-spin x-execute" title="Execute {0}"></i>'.format(name)
);
CommandController.bindToCommand({
@ -33,8 +34,8 @@ define(
},
_executeTask: function () {
CommandController.Execute(this.model.get('name'), {
name : this.model.get('name')
CommandController.Execute(this.model.get('taskName'), {
name : this.model.get('taskName')
});
}
});