code refactor
This commit is contained in:
parent
d5529a4589
commit
bf29ab1e72
|
@ -76,25 +76,25 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="task-table-contextmenu">
|
<div id="task-table-contextmenu">
|
||||||
<ul class="dropdown-menu" role="menu">
|
<ul class="dropdown-menu" role="menu">
|
||||||
<li ng-show="isSpecifiedTaskSelected('paused')">
|
<li ng-if="isSpecifiedTaskSelected('paused')">
|
||||||
<a tabindex="-1" class="pointer-cursor" title="{{'Start' | translate}}" ng-click="changeTasksState('start')">
|
<a tabindex="-1" class="pointer-cursor" title="{{'Start' | translate}}" ng-click="changeTasksState('start')">
|
||||||
<i class="fa fa-play"></i>
|
<i class="fa fa-play"></i>
|
||||||
<span translate>Start</span>
|
<span translate>Start</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li ng-show="isSpecifiedTaskSelected('active', 'waiting')">
|
<li ng-if="isSpecifiedTaskSelected('active', 'waiting')">
|
||||||
<a tabindex="-1" class="pointer-cursor" title="{{'Pause' | translate}}" ng-click="changeTasksState('pause')">
|
<a tabindex="-1" class="pointer-cursor" title="{{'Pause' | translate}}" ng-click="changeTasksState('pause')">
|
||||||
<i class="fa fa-pause"></i>
|
<i class="fa fa-pause"></i>
|
||||||
<span translate>Pause</span>
|
<span translate>Pause</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li ng-show="isTaskSelected()">
|
<li ng-if="isTaskSelected()">
|
||||||
<a tabindex="-1" class="pointer-cursor" title="{{'Delete' | translate}}" ng-click="removeTasks()">
|
<a tabindex="-1" class="pointer-cursor" title="{{'Delete' | translate}}" ng-click="removeTasks()">
|
||||||
<i class="fa fa-trash-o"></i>
|
<i class="fa fa-trash-o"></i>
|
||||||
<span translate>Delete</span>
|
<span translate>Delete</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider" ng-show="isTaskSelected()"></li>
|
<li class="divider" ng-if="isTaskSelected()"></li>
|
||||||
<li class="dropdown dropdown-submenu">
|
<li class="dropdown dropdown-submenu">
|
||||||
<a tabindex="-1" title="{{'Display Order' | translate}}" href="javascript:void(0);">
|
<a tabindex="-1" title="{{'Display Order' | translate}}" href="javascript:void(0);">
|
||||||
<i class="fa fa-sort-alpha-asc"></i>
|
<i class="fa fa-sort-alpha-asc"></i>
|
||||||
|
@ -145,8 +145,8 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider" ng-show="isSingleUrlTaskSelected()"></li>
|
<li class="divider" ng-if="isSingleUrlTaskSelected()"></li>
|
||||||
<li ng-show="isSingleUrlTaskSelected()">
|
<li ng-if="isSingleUrlTaskSelected()">
|
||||||
<a tabindex="-1" class="pointer-cursor" title="{{'Copy Download Url' | translate}}" ng-click="copySelectedOneTaskDownloadLink()">
|
<a tabindex="-1" class="pointer-cursor" title="{{'Copy Download Url' | translate}}" ng-click="copySelectedOneTaskDownloadLink()">
|
||||||
<i class="fa fa-copy"></i>
|
<i class="fa fa-copy"></i>
|
||||||
<span translate>Copy Download Url</span>
|
<span translate>Copy Download Url</span>
|
||||||
|
|
Reference in a new issue