Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
78b4733f
Unverified
Commit
78b4733f
authored
Nov 05, 2022
by
Zeng1998
Committed by
GitHub
Nov 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add icon for deleting resource (#414)
parent
37bb3bc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
ResourcesDialog.tsx
web/src/components/ResourcesDialog.tsx
+4
-3
resources-dialog.less
web/src/less/resources-dialog.less
+5
-1
No files found.
web/src/components/ResourcesDialog.tsx
View file @
78b4733f
...
...
@@ -183,9 +183,10 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => {
</
div
>
</
div
>
<
div
className=
"buttons-wrapper"
>
<
button
className=
"delete-unused-resource-btn"
onClick=
{
handleDeleteUnusedResourcesBtnClick
}
>
{
t
(
"resources.clear-unused-resources"
)
}
</
button
>
<
div
className=
"delete-unused-resource-btn"
onClick=
{
handleDeleteUnusedResourcesBtnClick
}
>
<
Icon
.
Trash2
className=
"icon-img"
/>
<
span
>
{
t
(
"resources.clear-unused-resources"
)
}
</
span
>
</
div
>
</
div
>
</
div
>
{
loadingState
.
isLoading
?
(
...
...
web/src/less/resources-dialog.less
View file @
78b4733f
...
...
@@ -24,7 +24,11 @@
}
> .delete-unused-resource-btn {
@apply text-sm py-1 px-3 mr-2 rounded bg-red-100 border border-solid border-red-600 text-red-600 hover:opacity-80;
@apply text-sm cursor-pointer px-3 py-1 rounded flex flex-row justify-center items-center border border-red-600 text-red-600 bg-red-100 hover:opacity-80;
> .icon-img {
@apply w-4 h-auto mr-1;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment