diff --git a/frontend/src/api/projectHistory.js b/frontend/src/api/projectHistory.js new file mode 100644 index 0000000000..54ee13d1d6 --- /dev/null +++ b/frontend/src/api/projectHistory.js @@ -0,0 +1,16 @@ +import paginateUrl from '../utils/paginateUrl.js' + +import client from './client.js' + +const getHistory = async (instanceId, cursor = undefined, limit = 10) => { + const url = paginateUrl(`/api/v1/projects/${instanceId}/history`, cursor, limit) + + return await client.get(url) + .then(res => { + return res.data + }) +} + +export default { + getHistory +} diff --git a/frontend/src/components/DevicesBrowser.vue b/frontend/src/components/DevicesBrowser.vue index e078ba743b..df0db31e85 100644 --- a/frontend/src/components/DevicesBrowser.vue +++ b/frontend/src/components/DevicesBrowser.vue @@ -340,7 +340,7 @@ import DeviceLink from '../pages/application/components/cells/DeviceLink.vue' import Snapshot from '../pages/application/components/cells/Snapshot.vue' import DeviceLastSeenBadge from '../pages/device/components/DeviceLastSeenBadge.vue' -import SnapshotAssignDialog from '../pages/instance/Snapshots/dialogs/SnapshotAssignDialog.vue' +import SnapshotAssignDialog from '../pages/instance/VersionHistory/Snapshots/dialogs/SnapshotAssignDialog.vue' import InstanceStatusBadge from '../pages/instance/components/InstanceStatusBadge.vue' import DeviceAssignApplicationDialog from '../pages/team/Devices/dialogs/DeviceAssignApplicationDialog.vue' import DeviceAssignInstanceDialog from '../pages/team/Devices/dialogs/DeviceAssignInstanceDialog.vue' diff --git a/frontend/src/components/SectionTopMenu.vue b/frontend/src/components/SectionTopMenu.vue index df5a9e3bdc..9a651a450a 100644 --- a/frontend/src/components/SectionTopMenu.vue +++ b/frontend/src/components/SectionTopMenu.vue @@ -1,6 +1,6 @@