-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add statring/stopping of task from tray
- Loading branch information
Maigo Erit
committed
Apr 26, 2016
1 parent
20c4b13
commit ca080d0
Showing
6 changed files
with
168 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<md-content> | ||
<md-list flex> | ||
<md-list-item ng-if="trackItemCtrl.runningLogItem" class="tray-item" ng-click="null"> | ||
<div class="md-list-item-text"> | ||
<h3>{{trackItemCtrl.runningLogItem.title}}</h3> | ||
|
||
<p>{{trackItemCtrl.runningLogItem.beginDate | date: 'yyyy.MM.dd HH:mm'}} - | ||
{{trackItemCtrl.runningLogItem.endDate | date: 'yyyy.MM.dd HH:mm'}}</p> | ||
</div> | ||
<md-button class="md-secondary md-icon-button" ng-click="trackItemCtrl.stopRunningLogItem()" aria-label="stop task"> | ||
<md-tooltip md-direction="left"> | ||
Stop task | ||
</md-tooltip> | ||
<md-icon md-font-set="material-icons">stop</md-icon> | ||
</md-button> | ||
</md-list-item> | ||
<md-list-item ng-if="!trackItemCtrl.runningLogItem" class="tray-item" ng-click="null"> | ||
<div class="md-list-item-text"> | ||
<h3>No running tasks</h3> | ||
</div> | ||
</md-list-item> | ||
<md-subheader class="md-no-sticky">Last tasks</md-subheader> | ||
<md-list-item class="tray-item" ng-repeat="item in trackItemCtrl.trackItems" ng-click="null"> | ||
<div class="md-list-item-text"> | ||
<h3>{{item.title}}</h3> | ||
|
||
<p>{{item.beginDate | date: 'yyyy.MM.dd HH:mm'}} - {{item.endDate | date: 'yyyy.MM.dd HH:mm'}}</p> | ||
</div> | ||
<md-button class="md-secondary md-icon-button" ng-click="trackItemCtrl.startNewLogItem(item)" aria-label="start task"> | ||
<md-tooltip md-direction="left"> | ||
Start task | ||
</md-tooltip> | ||
<md-icon md-font-set="material-icons">play_circle_filled</md-icon> | ||
</md-button> | ||
</md-list-item> | ||
</md-list> | ||
</md-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
'use strict'; | ||
angular.module('trayApp') | ||
.service('TrackItemService', function () { | ||
|
||
return require('remote').getGlobal('trackItemServiceInst'); | ||
var service = require('remote').getGlobal('BackgroundService').getTrackItemService(); | ||
return service; | ||
}); |
Oops, something went wrong.