-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/2499/show garbage bin next to the loaded maps (#2647)
* migrate remove file button * fix remove file button * change remove file button style * disable remove loaded map button when only one left * fix test for remove loaded map button * fix remove file button only visible when at least 2 maps are loaded * Add test for remove file button #2499 * Change scss #2499 * Fix button hover circle #2499 * Update CHANGELOG.md Co-authored-by: Clara Schild <clara.schild@maibornwolff.de> Co-authored-by: cschild <clara.schild@gmail.com> Co-authored-by: cschild <48218172+cschild@users.noreply.github.com>
- Loading branch information
1 parent
d9eb6e7
commit 0c69f88
Showing
16 changed files
with
57 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...on/app/codeCharta/ui/filePanel/filePanelFileSelector/filePanelFileSelector.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.filenames { | ||
.mat-option-text { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...harta/ui/filePanel/filePanelFileSelector/removeFileButton/removeFileButton.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<button mat-button (click)="onRemoveFile(filename, $event)" title="Remove map"> | ||
<i class="fa fa-trash delete-symbol"></i> | ||
</button> |
9 changes: 9 additions & 0 deletions
9
...harta/ui/filePanel/filePanelFileSelector/removeFileButton/removeFileButton.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cc-remove-file-button { | ||
.mat-button { | ||
border-radius: 50%; | ||
margin: 0; | ||
min-width: 0; | ||
line-height: 0; | ||
padding: 8px 10px; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...eCharta/ui/filePanel/filePanelFileSelector/removeFileButton/removeFileButton.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import "./removeFileButton.component.scss" | ||
import { Component, Input } from "@angular/core" | ||
|
||
@Component({ | ||
selector: "cc-remove-file-button", | ||
template: require("./removeFileButton.component.html") | ||
}) | ||
export class RemoveFileButtonComponent { | ||
@Input() filename: string | ||
@Input() onRemoveFile: (filename: string, event) => void | ||
} |
5 changes: 0 additions & 5 deletions
5
visualization/app/codeCharta/ui/removeFileButton/removeFileButton.component.html
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
visualization/app/codeCharta/ui/removeFileButton/removeFileButton.component.scss
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
visualization/app/codeCharta/ui/removeFileButton/removeFileButton.component.ts
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
visualization/app/codeCharta/ui/removeFileButton/removeFileButton.module.ts
This file was deleted.
Oops, something went wrong.