refactor: remove old uploadFiles prompt
This commit is contained in:
parent
88354a3446
commit
f6730e0481
@ -19,7 +19,6 @@ import Replace from "./Replace";
|
|||||||
import ReplaceRename from "./ReplaceRename";
|
import ReplaceRename from "./ReplaceRename";
|
||||||
import Share from "./Share";
|
import Share from "./Share";
|
||||||
import Upload from "./Upload";
|
import Upload from "./Upload";
|
||||||
import UploadFiles from "./UploadFiles";
|
|
||||||
import ShareDelete from "./ShareDelete";
|
import ShareDelete from "./ShareDelete";
|
||||||
import { mapState } from "vuex";
|
import { mapState } from "vuex";
|
||||||
import buttons from "@/utils/buttons";
|
import buttons from "@/utils/buttons";
|
||||||
@ -41,7 +40,6 @@ export default {
|
|||||||
ReplaceRename,
|
ReplaceRename,
|
||||||
Upload,
|
Upload,
|
||||||
ShareDelete,
|
ShareDelete,
|
||||||
UploadFiles,
|
|
||||||
},
|
},
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
@ -101,7 +99,6 @@ export default {
|
|||||||
"replace-rename",
|
"replace-rename",
|
||||||
"share",
|
"share",
|
||||||
"upload",
|
"upload",
|
||||||
"uploadFiles",
|
|
||||||
"share-delete",
|
"share-delete",
|
||||||
].indexOf(this.show) >= 0;
|
].indexOf(this.show) >= 0;
|
||||||
|
|
||||||
|
|||||||
@ -69,7 +69,6 @@
|
|||||||
icon="file_upload"
|
icon="file_upload"
|
||||||
id="upload-button"
|
id="upload-button"
|
||||||
:label="$t('buttons.upload')"
|
:label="$t('buttons.upload')"
|
||||||
:counter="filesInUploadCount"
|
|
||||||
@action="upload"
|
@action="upload"
|
||||||
/>
|
/>
|
||||||
<action icon="info" :label="$t('buttons.info')" show="info" />
|
<action icon="info" :label="$t('buttons.info')" show="info" />
|
||||||
@ -300,7 +299,7 @@ export default {
|
|||||||
"selected",
|
"selected",
|
||||||
"loading",
|
"loading",
|
||||||
]),
|
]),
|
||||||
...mapGetters(["selectedCount", "filesInUploadCount"]),
|
...mapGetters(["selectedCount"]),
|
||||||
nameSorted() {
|
nameSorted() {
|
||||||
return this.req.sorting.by === "name";
|
return this.req.sorting.by === "name";
|
||||||
},
|
},
|
||||||
@ -837,17 +836,13 @@ export default {
|
|||||||
this.fillWindow();
|
this.fillWindow();
|
||||||
},
|
},
|
||||||
upload: function () {
|
upload: function () {
|
||||||
if (this.filesInUploadCount > 0) {
|
if (
|
||||||
this.$store.commit("showHover", "uploadFiles");
|
typeof window.DataTransferItem !== "undefined" &&
|
||||||
|
typeof DataTransferItem.prototype.webkitGetAsEntry !== "undefined"
|
||||||
|
) {
|
||||||
|
this.$store.commit("showHover", "upload");
|
||||||
} else {
|
} else {
|
||||||
if (
|
document.getElementById("upload-input").click();
|
||||||
typeof window.DataTransferItem !== "undefined" &&
|
|
||||||
typeof DataTransferItem.prototype.webkitGetAsEntry !== "undefined"
|
|
||||||
) {
|
|
||||||
this.$store.commit("showHover", "upload");
|
|
||||||
} else {
|
|
||||||
document.getElementById("upload-input").click();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setItemWeight() {
|
setItemWeight() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user