hide content in task detail page when task does not exist

This commit is contained in:
MaysWind 2017-05-20 12:46:26 +08:00
parent b371cf39df
commit 32a49516d0
2 changed files with 3 additions and 5 deletions

View file

@ -60,9 +60,7 @@
} }
var processError = function (message) { var processError = function (message) {
if (message === aria2RpcErrors.Unauthorized.message) { $interval.cancel(downloadTaskRefreshPromise);
$interval.cancel(downloadTaskRefreshPromise);
}
}; };
var includeLocalPeer = true; var includeLocalPeer = true;

View file

@ -1,4 +1,4 @@
<section class="content no-padding"> <section class="content no-padding" ng-if="task">
<div class="nav-tabs-custom"> <div class="nav-tabs-custom">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li ng-class="{'active': context.currentTab == 'overview'}"> <li ng-class="{'active': context.currentTab == 'overview'}">
@ -23,7 +23,7 @@
<div class="tab-content no-padding"> <div class="tab-content no-padding">
<div class="tab-pane" ng-class="{'active': context.currentTab == 'overview'}"> <div class="tab-pane" ng-class="{'active': context.currentTab == 'overview'}">
<div class="settings-table striped hoverable"> <div class="settings-table striped hoverable">
<div class="row"> <div class="row" ng-if="task">
<div class="setting-key col-sm-4"> <div class="setting-key col-sm-4">
<span translate>Task Name</span> <span translate>Task Name</span>
</div> </div>