Skip to content

Commit 2bcfab3

Browse files
ndg63276Mark Williams
andauthored
LIMS-1713: Allow sm beamlines to use mx Create Container page (#932)
Co-authored-by: Mark Williams <mark.williams@diamond.ac.uk>
1 parent 6825052 commit 2bcfab3

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

client/src/js/modules/shipment/components/container-add-wrapper.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export default {
101101
if (!this.mview) {
102102
const newAddContainers = {
103103
mx: 'mx-container-add',
104+
sm: 'mx-container-add',
104105
}
105106
106107
this.componentType = newAddContainers[this.proposalType]
@@ -120,4 +121,4 @@ export default {
120121
}
121122
122123
}
123-
</script>
124+
</script>

client/src/js/modules/shipment/components/container-map.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const ContainerListMap = {
1616
// We assign null to the view property because we want to use new components
1717
export const ContainerViewMap = {
1818
mx: { title: 'Container', view: null },
19+
sm: { title: 'Container', view: null },
1920
xpdf: { title: 'Container', view: XpdfContainerView },
2021
default:{ title: 'Container', view: ContainerView }
2122
}
@@ -29,6 +30,8 @@ export const ContainerPlateViewMap = {
2930
export const ContainerAddMap = {
3031
xpdf: { title: 'Container', view: XpdfContainerAddView },
3132
default:{ title: 'Container', view: ContainerAddView },
33+
sm: { title: 'Container', view: null },
3234
mx: { title: 'Container', view: null }
35+
3336
}
3437

client/src/js/modules/shipment/components/container-view-wrapper.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export default {
101101
if (!this.mview) {
102102
const newViewContainers = {
103103
mx: 'mx-container-view',
104+
sm: 'mx-container-view',
104105
}
105106
106107
this.componentType = newViewContainers[this.proposalType]

0 commit comments

Comments
 (0)