feat: show existing name while renaming collections/folders/requests - resolved #2006

This commit is contained in:
liyasthomas
2021-12-10 10:55:49 +05:30
parent dec26ce2aa
commit fe13de2ea0
9 changed files with 58 additions and 8 deletions

View File

@@ -45,12 +45,18 @@ export default defineComponent({
show: Boolean,
editingCollection: { type: Object, default: () => {} },
editingCollectionIndex: { type: Number, default: null },
editingCollectionName: { type: String, default: null },
},
data() {
return {
name: null as string | null,
}
},
watch: {
editingCollectionName(val) {
this.name = val
},
},
methods: {
saveCollection() {
if (!this.name) {