mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Fix incorrect history swapping / see more in #14173
This commit is contained in:
@@ -88,7 +88,7 @@ export default {
|
||||
deleteHistory: (history) => this.deleteHistory({ history }),
|
||||
deleteCurrentHistory: () => this.deleteHistory({ history: this.currentHistory }),
|
||||
|
||||
// purge history then clearn currentHistoryId
|
||||
// purge history then clear currentHistoryId
|
||||
purgeHistory: (history) => this.deleteHistory({ history, purge: true }),
|
||||
purgeCurrentHistory: () => this.deleteHistory({ history: this.currentHistory, purge: true }),
|
||||
|
||||
|
||||
@@ -152,10 +152,8 @@ const actions = {
|
||||
commit("setCurrentHistoryId", history.id);
|
||||
},
|
||||
async setCurrentHistory({ dispatch, getters }, id) {
|
||||
if (id !== getters.currentHistoryId) {
|
||||
const changedHistory = await setCurrentHistoryOnServer(id);
|
||||
dispatch("selectHistory", changedHistory);
|
||||
}
|
||||
const changedHistory = await setCurrentHistoryOnServer(id);
|
||||
dispatch("selectHistory", changedHistory);
|
||||
},
|
||||
setHistory({ commit }, history) {
|
||||
commit("setHistory", history);
|
||||
|
||||
Reference in New Issue
Block a user