Skip to content

Commit

Permalink
Add visual feedback about missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvergessen authored and Raimund Schlüßler committed Sep 5, 2015
1 parent 7bc6367 commit 9e408f1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
});
} else {
$msg = 'Can not enable the Tasks app because the Calendar App is disabled.';
\OCP\Util::addScript('tasks', 'calendar-missing');
\OCP\Util::writeLog('tasks', $msg, \OCP\Util::ERROR);
}
14 changes: 14 additions & 0 deletions js/calendar-missing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2015
*
* This file is licensed under the Affero General Public License version 3
* or later.
*
* See the COPYING-README file.
*
*/
$(function(){
$(document).ready(function () {
OC.Notification.showTemporary(t('tasks', 'Tasks app is unavailable because the calendar is not installed'));
});
});

0 comments on commit 9e408f1

Please sign in to comment.