Skip to content

Commit

Permalink
Update warning message for whole body scaffold.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Jun 1, 2023
1 parent d7cec09 commit 3db44e7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/scripts/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const initialState = async (type, sparcApi) => {
state.entries[0].resource = url;
state.entries[0].type = "Scaffold";
state.entries[0].label = "Human";
state.entries[0].isBodyScaffold = true;
}

return state;
Expand Down
1 change: 1 addition & 0 deletions src/components/viewers/MultiFlatmap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default {
title: "View 3D scaffold",
layout: "2vertpanel",
type: "SyncMap",
isBodyScaffold: true,
};
}
if (action)
Expand Down
10 changes: 10 additions & 0 deletions src/components/viewers/Scaffold.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
:help-mode="helpMode"
:render="visible"
:display-latest-message="true"
:warning-message="warningMessage"
:display-minimap="false"
:display-markers="false"
:view-u-r-l="entry.viewUrl"
Expand Down Expand Up @@ -161,6 +162,15 @@ export default {
return false;
},
},
computed: {
warningMessage: function() {
if (this.entry.isBodyScaffold) {
return "This map displays the anatomical location and connectivity of nerves, through which the neuron populations from the ApiNATOMY models available in SCKAN can be routed.";
} else {
return "Under active development";
}
},
},
data: function () {
return {
apiLocation: process.env.VUE_APP_API_LOCATION,
Expand Down

0 comments on commit 3db44e7

Please sign in to comment.