diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-13 21:09:37 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-13 21:09:37 +0200 |
commit | efb2bed7cef424e78994f1a5cb3e0151f13695c7 (patch) | |
tree | 3b3a59f3732ce88deb17cd95786bd290698d281f | |
parent | 5167c2534e0ef8f7ca7fe1afe2a3b567870043f0 (diff) |
proper styles for settings upload
-rw-r--r-- | templates/part.settings.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/part.settings.php b/templates/part.settings.php index f863b601b..81dcfc878 100644 --- a/templates/part.settings.php +++ b/templates/part.settings.php @@ -47,23 +47,23 @@ <button title="<?php p($l->t('Import')); ?>" class="icon-upload svg button-icon-label" - news-trigger-click="#opml-upload"> + news-trigger-click="#opml-upload" + ng-disabled="Settings.isImporting()"> <?php p($l->t('Import')); ?> </button> - <a title="<?php p($l->t('Export')); ?>" class="button icon-download svg button-icon-label" href="<?php p(\OCP\Util::linkToRoute('news.export.opml')); ?>" target="_blank" - ng-show="feedSize() > 0"> + ng-hide="App.isFirstRun()"> <?php p($l->t('Export')); ?> </a> <button class="icon-download svg button-icon-label" title="<?php p($l->t('Export')); ?>" - ng-hide="feedSize() > 0" + ng-show="App.isFirstRun()" disabled> <?php p($l->t('Export')); ?> </button> @@ -85,7 +85,7 @@ <button title="<?php p($l->t('Import')); ?>" class="icon-upload svg button-icon-label" ng-class="{'icon-loading-small': Settings.importing}" - ng-disabled="importing" + ng-disabled="Settings.isImporting()" news-trigger-click="#article-upload"> <?php p($l->t('Import')); ?> </button> @@ -93,13 +93,13 @@ <a title="<?php p($l->t('Export')); ?>" class="button icon-download svg button-icon-label" href="<?php p(\OCP\Util::linkToRoute('news.export.articles')); ?>" target="_blank" - ng-show="feedSize() > 0"> + ng-hide="App.isFirstRun()"> <?php p($l->t('Export')); ?> </a> <button class="icon-download svg button-icon-label" title="<?php p($l->t('Export')); ?>" - ng-hide="feedSize() > 0" + ng-show="App.isFirstRun()" disabled> <?php p($l->t('Export')); ?> </button> |