Don't show client info, when the app is disabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
db22c42e78
commit
777e7bbf53
|
@ -225,9 +225,11 @@ $tmpl->assign('groups', $groups2);
|
|||
// add hardcoded forms from the template
|
||||
$formsAndMore = [];
|
||||
$formsAndMore[]= ['anchor' => 'personal-settings', 'section-name' => $l->t('Personal info')];
|
||||
if (\OC::$server->getAppManager()->isEnabledForUser('firstrunwizard')) {
|
||||
$formsAndMore[]= ['anchor' => 'clientsbox', 'section-name' => $l->t('Sync clients')];
|
||||
}
|
||||
$formsAndMore[]= ['anchor' => 'sessions', 'section-name' => $l->t('Sessions')];
|
||||
$formsAndMore[]= ['anchor' => 'apppasswords', 'section-name' => $l->t('App passwords')];
|
||||
$formsAndMore[]= ['anchor' => 'clientsbox', 'section-name' => $l->t('Sync clients')];
|
||||
|
||||
$forms=OC_App::getForms('personal');
|
||||
|
||||
|
|
|
@ -301,6 +301,7 @@ if($_['passwordChangeSupported']) {
|
|||
</form>
|
||||
|
||||
|
||||
<?php if(OC_APP::isEnabled('firstrunwizard')) {?>
|
||||
<div id="clientsbox" class="section clientsbox">
|
||||
<h2><?php p($l->t('Get the apps to sync your files'));?></h2>
|
||||
<a href="<?php p($_['clients']['desktop']); ?>" rel="noreferrer" target="_blank">
|
||||
|
@ -329,10 +330,9 @@ if($_['passwordChangeSupported']) {
|
|||
$l->t('If you want to support the project {contributeopen}join development{linkclose} or {contributeopen}spread the word{linkclose}!'))); ?>
|
||||
</p>
|
||||
|
||||
<?php if(OC_APP::isEnabled('firstrunwizard')) {?>
|
||||
<p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again'));?></a></p>
|
||||
<?php }?>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<div id="sessions" class="section">
|
||||
<h2><?php p($l->t('Sessions'));?></h2>
|
||||
|
|
Loading…
Reference in New Issue