mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #5225 from nextcloud/no-client-info-without-firstrunwizard
Don't show client info, when the app is disabled
This commit is contained in:
commit
a61aabea83
2 changed files with 5 additions and 3 deletions
|
|
@ -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 a new issue