Skip to content

Commit

Permalink
In history view, add info message for when history import is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Apr 12, 2024
1 parent f2ef679 commit 136ae75
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/src/components/History/HistoryView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
</b-button>
</div>

<b-alert :show="copySuccess"> History imported and set to your active history. </b-alert>

<CollectionPanel
v-if="selectedCollections.length && selectedCollections[0].history_id == id"
:history="history"
Expand All @@ -38,7 +40,7 @@
filterable
@view-collection="onViewCollection" />

<CopyModal id="copy-history-modal" :history="history" />
<CopyModal id="copy-history-modal" :history="history" @ok="copyOkay" />
</div>
</template>

Expand Down Expand Up @@ -67,6 +69,7 @@ export default {
data() {
return {
selectedCollections: [],
copySuccess: false,
};
},
computed: {
Expand Down Expand Up @@ -127,6 +130,9 @@ export default {
onViewCollection(collection) {
this.selectedCollections = [...this.selectedCollections, collection];
},
copyOkay() {
this.copySuccess = true;
},
},
};
</script>

0 comments on commit 136ae75

Please sign in to comment.