feat: add New Request button for folder and collection (#2241)

Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
kyteinsky
2022-04-14 17:09:02 +05:30
committed by GitHub
parent 745b9f7275
commit ff51b7e5df
12 changed files with 390 additions and 3 deletions

View File

@@ -50,12 +50,16 @@ export default defineComponent({
},
methods: {
addFolder() {
// TODO: Blocking when name is null ?
if (!this.name) {
this.$toast.error(`${this.$t("folder.name_length_insufficient")}`)
return
}
this.$emit("add-folder", {
name: this.name,
path: this.folderPath || `${this.collectionIndex}`,
})
this.hideModal()
},
hideModal() {