From 695237b258b9d31269f047248f2b99af86f0d161 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 11 Jun 2018 10:05:42 +0200 Subject: [PATCH] Fix add icon path --- .../src/app/+admin/users/user-list/user-list.component.scss | 2 +- .../my-account-video-channels.component.scss | 2 +- client/src/assets/images/{admin => global}/add.svg | 0 client/src/sass/include/_mixins.scss | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename client/src/assets/images/{admin => global}/add.svg (100%) diff --git a/client/src/app/+admin/users/user-list/user-list.component.scss b/client/src/app/+admin/users/user-list/user-list.component.scss index 4a66b5d8d..4fc36e11e 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.scss +++ b/client/src/app/+admin/users/user-list/user-list.component.scss @@ -2,5 +2,5 @@ @import '_mixins'; .add-button { - @include create-button; + @include create-button('../../../../assets/images/global/add.svg'); } diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss index bcb58eac2..56a637a82 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss @@ -2,7 +2,7 @@ @import '_mixins'; .create-button { - @include create-button; + @include create-button('../../../assets/images/global/add.svg'); } /deep/ .action-button { diff --git a/client/src/assets/images/admin/add.svg b/client/src/assets/images/global/add.svg similarity index 100% rename from client/src/assets/images/admin/add.svg rename to client/src/assets/images/global/add.svg diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index dce3430fd..748c98afa 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -400,7 +400,7 @@ } } -@mixin create-button { +@mixin create-button ($imageUrl) { @include peertube-button-link; @include orange-button; @@ -408,6 +408,6 @@ @include icon(22px); margin-right: 3px; - background-image: url('/assets/images/admin/add.svg'); + background-image: url($imageUrl); } } -- 2.25.1