mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
UI cleanup for tasks
This commit is contained in:
parent
2b0ddb6131
commit
6b912a56f0
4 changed files with 21 additions and 13 deletions
|
@ -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')
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue