Skip to content

Commit

Permalink
Merge pull request #34626 from nextcloud/enhancement/rename-personal-…
Browse files Browse the repository at this point in the history
…groupware-settings-section-availability

Rename personal Groupware settings section to "Availability"
  • Loading branch information
ChristophWurst authored Oct 24, 2022
2 parents 999f89f + 0799b89 commit 232c760
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions apps/dav/img/LICENSES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Licenses

## schedule.svg
- Created by: Google
- License: Apache License, Version 2.0
- Link: https://fonts.google.com/icons?selected=Material%20Icons%3Aschedule%3A
1 change: 1 addition & 0 deletions apps/dav/img/schedule.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/dav/lib/Settings/AvailabilitySettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getForm(): TemplateResponse {
}

public function getSection(): string {
return 'groupware';
return 'availability';
}

public function getPriority(): int {
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<personal>OCA\Settings\Settings\Personal\Security\Password</personal>
<personal>OCA\Settings\Settings\Personal\Security\TwoFactor</personal>
<personal>OCA\Settings\Settings\Personal\Security\WebAuthn</personal>
<personal-section>OCA\Settings\Sections\Personal\Groupware</personal-section>
<personal-section>OCA\Settings\Sections\Personal\Availability</personal-section>
<personal-section>OCA\Settings\Sections\Personal\PersonalInfo</personal-section>
<personal-section>OCA\Settings\Sections\Personal\Security</personal-section>
<personal-section>OCA\Settings\Sections\Personal\SyncClients</personal-section>
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/composer/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
'OCA\\Settings\\Sections\\Admin\\Security' => $baseDir . '/../lib/Sections/Admin/Security.php',
'OCA\\Settings\\Sections\\Admin\\Server' => $baseDir . '/../lib/Sections/Admin/Server.php',
'OCA\\Settings\\Sections\\Admin\\Sharing' => $baseDir . '/../lib/Sections/Admin/Sharing.php',
'OCA\\Settings\\Sections\\Personal\\Groupware' => $baseDir . '/../lib/Sections/Personal/Groupware.php',
'OCA\\Settings\\Sections\\Personal\\Availability' => $baseDir . '/../lib/Sections/Personal/Availability.php',
'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => $baseDir . '/../lib/Sections/Personal/PersonalInfo.php',
'OCA\\Settings\\Sections\\Personal\\Security' => $baseDir . '/../lib/Sections/Personal/Security.php',
'OCA\\Settings\\Sections\\Personal\\SyncClients' => $baseDir . '/../lib/Sections/Personal/SyncClients.php',
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/composer/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ComposerStaticInitSettings
'OCA\\Settings\\Sections\\Admin\\Security' => __DIR__ . '/..' . '/../lib/Sections/Admin/Security.php',
'OCA\\Settings\\Sections\\Admin\\Server' => __DIR__ . '/..' . '/../lib/Sections/Admin/Server.php',
'OCA\\Settings\\Sections\\Admin\\Sharing' => __DIR__ . '/..' . '/../lib/Sections/Admin/Sharing.php',
'OCA\\Settings\\Sections\\Personal\\Groupware' => __DIR__ . '/..' . '/../lib/Sections/Personal/Groupware.php',
'OCA\\Settings\\Sections\\Personal\\Availability' => __DIR__ . '/..' . '/../lib/Sections/Personal/Availability.php',
'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => __DIR__ . '/..' . '/../lib/Sections/Personal/PersonalInfo.php',
'OCA\\Settings\\Sections\\Personal\\Security' => __DIR__ . '/..' . '/../lib/Sections/Personal/Security.php',
'OCA\\Settings\\Sections\\Personal\\SyncClients' => __DIR__ . '/..' . '/../lib/Sections/Personal/SyncClients.php',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;

class Groupware implements IIconSection {
class Availability implements IIconSection {

/** @var IL10N */
private $l;
Expand All @@ -41,15 +41,15 @@ public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
}

public function getIcon(): string {
return $this->urlGenerator->imagePath('core', 'places/contacts.svg');
return $this->urlGenerator->imagePath('dav', 'schedule.svg');
}

public function getID(): string {
return 'groupware';
return 'availability';
}

public function getName(): string {
return $this->l->t('Groupware');
return $this->l->t('Availability');
}

public function getPriority(): int {
Expand Down

0 comments on commit 232c760

Please sign in to comment.