feat: show existing name while renaming collections/folders/requests - resolved #2006
This commit is contained in:
@@ -35,7 +35,7 @@ import { defineComponent } from "@nuxtjs/composition-api"
|
||||
export default defineComponent({
|
||||
props: {
|
||||
show: Boolean,
|
||||
placeholderReqName: { type: String, default: null },
|
||||
editingRequestName: { type: String, default: null },
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -44,6 +44,11 @@ export default defineComponent({
|
||||
},
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
editingRequestName(val) {
|
||||
this.requestUpdateData.name = val
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
saveRequest() {
|
||||
if (!this.requestUpdateData.name) {
|
||||
|
||||
Reference in New Issue
Block a user