Add copy dialog

This commit is contained in:
guerler
2022-09-19 20:34:21 -04:00
parent 42c20c549d
commit 542be34ac5
2 changed files with 14 additions and 7 deletions
@@ -12,7 +12,12 @@
@click="handlers.setCurrentHistory(history)">
Switch to this history
</b-button>
<b-button v-else size="sm" variant="outline-info" title="Import this history" @click="onImport">
<b-button
v-else
size="sm"
variant="outline-info"
title="Import this history"
v-b-modal:copy-history-modal>
Import this history
</b-button>
</div>
@@ -28,9 +33,10 @@
:history="history"
:show-controls="false"
@view-collection="onViewCollection" />
<CopyModal id="copy-history-modal" :history="history" />
</div>
<b-alert v-else class="m-2" variant="info" show>
<LoadingSpan message="Loading Histories" />
<LoadingSpan message="Loading History" />
</b-alert>
</UserHistories>
</CurrentUser>
@@ -38,11 +44,12 @@
<script>
import { mapGetters } from "vuex";
import CollectionPanel from "components/History/CurrentCollection/CollectionPanel";
import CurrentUser from "components/providers/CurrentUser";
import HistoryPanel from "components/History/CurrentHistory/HistoryPanel";
import LoadingSpan from "components/LoadingSpan";
import UserHistories from "components/providers/UserHistories";
import LoadingSpan from "components/LoadingSpan";
import CollectionPanel from "./CurrentCollection/CollectionPanel";
import HistoryPanel from "./CurrentHistory/HistoryPanel";
import CopyModal from "./Modals/CopyModal";
export default {
components: {
@@ -51,6 +58,7 @@ export default {
CollectionPanel,
CurrentUser,
UserHistories,
CopyModal,
},
props: {
id: {
@@ -73,7 +81,6 @@ export default {
},
},
methods: {
onImport() {},
onViewCollection(collection) {
this.selectedCollections = [...this.selectedCollections, collection];
},
+1 -1
View File
@@ -28,7 +28,7 @@ import Grid from "components/Grid/Grid";
import GridShared from "components/Grid/GridShared";
import GridHistory from "components/Grid/GridHistory";
import HistoryImport from "components/HistoryImport";
import HistoryView from "components/HistoryView";
import HistoryView from "components/History/HistoryView";
import HistoryMultipleView from "components/History/Multiple/MultipleView";
import InteractiveTools from "components/InteractiveTools/InteractiveTools";
import InvocationReport from "components/Workflow/InvocationReport";