hide content in task detail page when task does not exist
This commit is contained in:
parent
b371cf39df
commit
32a49516d0
|
@ -60,9 +60,7 @@
|
|||
}
|
||||
|
||||
var processError = function (message) {
|
||||
if (message === aria2RpcErrors.Unauthorized.message) {
|
||||
$interval.cancel(downloadTaskRefreshPromise);
|
||||
}
|
||||
$interval.cancel(downloadTaskRefreshPromise);
|
||||
};
|
||||
|
||||
var includeLocalPeer = true;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<section class="content no-padding">
|
||||
<section class="content no-padding" ng-if="task">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li ng-class="{'active': context.currentTab == 'overview'}">
|
||||
|
@ -23,7 +23,7 @@
|
|||
<div class="tab-content no-padding">
|
||||
<div class="tab-pane" ng-class="{'active': context.currentTab == 'overview'}">
|
||||
<div class="settings-table striped hoverable">
|
||||
<div class="row">
|
||||
<div class="row" ng-if="task">
|
||||
<div class="setting-key col-sm-4">
|
||||
<span translate>Task Name</span>
|
||||
</div>
|
||||
|
|
Reference in a new issue