mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix installation link on the purchased modules list (#6434)
This commit is contained in:
parent
cc29276c51
commit
36c4cff0a0
@ -136,6 +136,7 @@ humhub.module('marketplace', function (module, require, $) {
|
||||
const installButton = evt.$trigger;
|
||||
const moduleId = installButton.data('module-id');
|
||||
|
||||
modal.global.reset();
|
||||
modal.global.setHeader(module.config.text.installing);
|
||||
modal.global.$.removeClass('fade');
|
||||
modal.global.$.find('button[data-modal-close]').hide();
|
||||
|
@ -3,6 +3,7 @@
|
||||
use humhub\components\Module;
|
||||
use humhub\modules\marketplace\assets\Assets;
|
||||
use humhub\widgets\Button;
|
||||
use humhub\widgets\Link;
|
||||
use yii\base\View;
|
||||
use yii\helpers\Url;
|
||||
use yii\helpers\Html;
|
||||
@ -72,7 +73,9 @@ Assets::register($this);
|
||||
|
||||
<div class="module-controls">
|
||||
<?php if (!Yii::$app->moduleManager->hasModule($module['id'])): ?>
|
||||
<?= Html::a(Yii::t('MarketplaceModule.base', 'Install'), Url::to(['/marketplace/browse/install', 'moduleId' => $module['id']]), ['style' => 'font-weight:bold', 'data-loader' => "modal", 'data-message' => Yii::t('MarketplaceModule.base', 'Installing module...'), 'data-method' => 'POST']); ?>
|
||||
<strong><?= Link::asLink(Yii::t('MarketplaceModule.base', 'Install'))
|
||||
->action('marketplace.install', ['/marketplace/browse/install'])
|
||||
->options(['data-module-id' => $module['id']]) ?></strong>
|
||||
·
|
||||
<?php endif; ?>
|
||||
<?= Html::a(Yii::t('MarketplaceModule.base', 'More info'), $module['marketplaceUrl'], ['target' => '_blank']); ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user