From e46410e856fdbfc3fb6f5288dee87d16112d5ae8 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 24 Jan 2017 12:54:32 -0600 Subject: Add icon to admin page sidebar for LDAP * follow up to nextcloud/server#3151 Signed-off-by: Morris Jobke --- apps/user_ldap/img/app-dark.svg | 4 ++++ apps/user_ldap/lib/Settings/Section.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 apps/user_ldap/img/app-dark.svg (limited to 'apps/user_ldap') diff --git a/apps/user_ldap/img/app-dark.svg b/apps/user_ldap/img/app-dark.svg new file mode 100644 index 00000000000..54939fab4f2 --- /dev/null +++ b/apps/user_ldap/img/app-dark.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/user_ldap/lib/Settings/Section.php b/apps/user_ldap/lib/Settings/Section.php index a4106bacb9e..86d293d3879 100644 --- a/apps/user_ldap/lib/Settings/Section.php +++ b/apps/user_ldap/lib/Settings/Section.php @@ -77,6 +77,6 @@ class Section implements IIconSection { * {@inheritdoc} */ public function getIcon() { - return $this->url->imagePath('user_ldap', 'app.svg'); + return $this->url->imagePath('user_ldap', 'app-dark.svg'); } } -- cgit v1.2.3 From 95ef625a9d6b3c6f3d8dac173ba73992dbd50204 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 25 Jan 2017 11:24:42 +0100 Subject: Fix tests Signed-off-by: Joas Schilling --- apps/user_ldap/tests/Settings/SectionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/user_ldap') diff --git a/apps/user_ldap/tests/Settings/SectionTest.php b/apps/user_ldap/tests/Settings/SectionTest.php index ae780dd7665..5f565e89933 100644 --- a/apps/user_ldap/tests/Settings/SectionTest.php +++ b/apps/user_ldap/tests/Settings/SectionTest.php @@ -68,7 +68,7 @@ class SectionTest extends TestCase { public function testGetIcon() { $this->url->expects($this->once()) ->method('imagePath') - ->with('user_ldap', 'app.svg') + ->with('user_ldap', 'app-dark.svg') ->willReturn('icon'); $this->assertSame('icon', $this->section->getIcon()); -- cgit v1.2.3