Skip to content

Commit 294f45c

Browse files
committed
clear error when changing folder name so you dont get a flash of red
1 parent b146294 commit 294f45c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

resources/js/components/assets/Browser/AssetBrowserMixin.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export default {
2727
draggingFolder() {
2828
this.$emit('prevent-dragging', this.draggingFolder !== null);
2929
},
30+
31+
newFolderName() {
32+
if (this.creatingFolderError) this.$emit('update:creatingFolderError', null);
33+
}
3034
},
3135

3236
methods: {

resources/js/components/assets/Browser/Browser.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ export default {
382382
this.creatingFolderError = false;
383383
},
384384
'prevent-dragging': (preventDragging) => (this.preventDragging = preventDragging),
385+
'update:creatingFolderError': (value) => (this.creatingFolderError = value),
385386
};
386387
},
387388
},

0 commit comments

Comments
 (0)