summaryrefslogtreecommitdiff
path: root/src/client/scripts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-14 01:09:39 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-14 01:09:39 +0900
commitf5f7654f4b9a99d3b57d55435e6d467084186c4d (patch)
treeedeccdea7eb1474fbffc4772374a2194128aaa5d /src/client/scripts
parent動きのあるMFMを無効にするオプション (diff)
downloadsharkey-f5f7654f4b9a99d3b57d55435e6d467084186c4d.tar.gz
sharkey-f5f7654f4b9a99d3b57d55435e6d467084186c4d.tar.bz2
sharkey-f5f7654f4b9a99d3b57d55435e6d467084186c4d.zip
Improve custom emoji managemant
Diffstat (limited to 'src/client/scripts')
-rw-r--r--src/client/scripts/select-file.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/scripts/select-file.ts b/src/client/scripts/select-file.ts
index 1025b23e03..70e68e88c0 100644
--- a/src/client/scripts/select-file.ts
+++ b/src/client/scripts/select-file.ts
@@ -1,8 +1,8 @@
-import { faUpload, faCloud, faLink } from '@fortawesome/free-solid-svg-icons';
+import { faUpload, faCloud } from '@fortawesome/free-solid-svg-icons';
import { selectDriveFile } from './select-drive-file';
import { apiUrl } from '../config';
-export function selectFile(component: any, src: any, label: string, multiple = false) {
+export function selectFile(component: any, src: any, label: string | null, multiple = false) {
return new Promise((res, rej) => {
const chooseFileFromPc = () => {
const input = document.createElement('input');
@@ -56,10 +56,10 @@ export function selectFile(component: any, src: any, label: string, multiple = f
};
component.$root.menu({
- items: [{
+ items: [label ? {
text: label,
type: 'label'
- }, {
+ } : undefined, {
text: component.$t('upload'),
icon: faUpload,
action: chooseFileFromPc