mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
ability to close file uploader
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import _ from 'lodash';
|
||||
import FontIcon from './icons/FontIcon.svelte';
|
||||
|
||||
import { extensions } from './stores';
|
||||
import { extensions, isFileDragActive } from './stores';
|
||||
|
||||
import getElectron from './utility/getElectron';
|
||||
|
||||
@@ -21,6 +21,15 @@
|
||||
</div>
|
||||
<div class="title">Drop the files to upload to DbGate</div>
|
||||
<div class="info">Supported file types: {fileTypeNames.join(', ')}</div>
|
||||
<div
|
||||
class="class-button"
|
||||
on:click={() => {
|
||||
$isFileDragActive = false;
|
||||
}}
|
||||
>
|
||||
<FontIcon icon="icon close" padRight />
|
||||
Close
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -53,4 +62,12 @@
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.class-button {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
font-size: 14pt;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user