-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small plan export improvements (#1422)
* created CancellableProgressRadial component to make plan export more DRY * fix an issue where progress radial is being reset in plans table if row is changed to selected or unselected
- Loading branch information
1 parent
48f6acf
commit d466e1f
Showing
5 changed files
with
91 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<svelte:options immutable={true} /> | ||
|
||
<script lang="ts"> | ||
import CloseIcon from '@nasa-jpl/stellar/icons/close.svg?component'; | ||
import ProgressRadial from './ProgressRadial.svelte'; | ||
export { className as class }; | ||
export let progress: number = 0; | ||
export let size: number = 16; | ||
let className: string = ''; | ||
</script> | ||
|
||
<div class:cancel-progress={true} class={className}> | ||
<ProgressRadial {progress} {size} strokeWidth={1} /> | ||
<div class="cancel"><CloseIcon /></div> | ||
</div> | ||
|
||
<style> | ||
.cancel-progress { | ||
--progress-radial-background: var(--st-gray-20); | ||
position: relative; | ||
} | ||
.cancel-progress .cancel { | ||
align-items: center; | ||
cursor: pointer; | ||
display: none; | ||
height: 100%; | ||
justify-content: center; | ||
left: 0; | ||
position: absolute; | ||
top: 0; | ||
width: 100%; | ||
} | ||
.cancel-progress .cancel :global(svg) { | ||
width: 65%; | ||
} | ||
.cancel-progress:hover .cancel { | ||
display: flex; | ||
} | ||
</style> |
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