We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 677d68d commit 0e9a621Copy full SHA for 0e9a621
index.html
@@ -821,8 +821,12 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
821
},
822
actions: {
823
init() {
824
- this.conversation = [],
825
- snackbarStore.showSuccessMessage("Added new session.")
+ if (this.conversation.length === 0) {
+ snackbarStore.showWarningMessage("Already in a fresh session.")
826
+ } else {
827
+ this.conversation = [];
828
+ snackbarStore.showSuccessMessage("Added new session.")
829
+ }
830
831
handleKeydown(e) {
832
if (e.key === "Enter" && (e.altKey || e.shiftKey || e.ctrlKey)) {
0 commit comments