show loading button when starting and stopping aria2;changed toast styling

This commit is contained in:
huangjx
2022-02-17 20:47:12 +08:00
parent 4efd64d991
commit 73855bc69d
5 changed files with 48 additions and 25 deletions

View File

@@ -16,9 +16,9 @@ $aria2_installed = $_['aria2_installed'];
data-aria2="<?php $aria2_running ? print $l->t('on') : print $l->t('off');?>">
<?php $aria2_running ? print $l->t('Stop Aria2') : print $l->t('Start Aria2');?>
</button>
</button>
<?php else: ?>
<button type="button" class="icon-power notinstalled"
data-aria2="<?php $aria2_running ? print $l->t('on') : print $l->t('off');?>">
<button type="button" class="icon-power notinstalled">
<?php print $l->t('Aria2 is not installed!');?>
</button>
<?php endif;?>